mirror of
https://github.com/Misterblue/opensim-docker.git
synced 2026-07-30 03:12:41 +00:00
Rework and simplify configuration.
Add NCG build (image-ncg)
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
# Script that walks ./config-include and over-writes all INI files with empty contents.
|
||||
# This also creates empty INI files for all the *.example files.
|
||||
|
||||
OPENSIMDIR=${OPENSIMDIR:-/home/opensim/opensim}
|
||||
OPENSIMBIN=${OPENSIMBIN:-$OPENSIMDIR/bin}
|
||||
|
||||
cd "$OPENSIMBIN"
|
||||
|
||||
if [[ ! -d "./config-include" ]] ; then
|
||||
echo "./config-include directory DOES NOT EXIST in the current directory"
|
||||
echo "NOT DOING ANYTHING"
|
||||
@@ -15,13 +20,14 @@ rm -f "$TEMPFILE"
|
||||
cat > "$TEMPFILE" << EOFFFF
|
||||
; This file exists because this file is the default architecture include
|
||||
; in OpenSim.ini.
|
||||
; Look for the real configuration in bin/config which overlays settings.
|
||||
; Look for the real configuration in the mounted config directory.
|
||||
EOFFFF
|
||||
|
||||
for iniFile in $(find ./config-include -name \*.ini ) ; do
|
||||
cp "$TEMPFILE" "$iniFile"
|
||||
done
|
||||
|
||||
# this finds all .example files and creates an empty .ini file from that name
|
||||
for exampleFile in $(find ./config-include -name \*.example) ; do
|
||||
cp "$TEMPFILE" "${exampleFile%%.example}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user