Files
opensim-docker/image-opensim/config/scripts/linkInConfigs.sh
T
Robert Adams 8f26c479a1 Add setup so, if configuration is mounted exteranlly to the container,
the configuration files are modified before the container is run.
    This solves a bunch of the permission problems.
    Closes #12
2022-02-06 18:44:25 +00:00

15 lines
433 B
Bash
Executable File

#! /bin/bash
# Script that copies the Includes.ini into the 'bin/config' dir so
# OpenSimulator finds our new configuration system.
OPENSIMBIN=${OPENSIMBIN:-/home/opensim/opensim/bin}
OPENSIMCONFIG="$OPENSIMBIN/config"
CONFIG_NAME=${CONFIG_NAME:-standalone}
cd "$OPENSIMCONFIG"
if [[ ! -e "Includes.ini" ]] ; then
echo "opensim-docker: Copying Includes.ini into bin/config"
cp "config-${CONFIG_NAME}/Includes.ini" .
fi