mirror of
https://github.com/Misterblue/opensim-docker.git
synced 2026-07-30 03:12:41 +00:00
the configuration files are modified before the container is run.
This solves a bunch of the permission problems.
Closes #12
15 lines
433 B
Bash
Executable File
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
|