Files
tgstation-server/build/tgs.docker.sh
T
Jordan Brown f473d11fd5 Cleanup solution items
- Add all missing items
- Rename a DMAPI file
- Add a missing DMAPI README.md
- Removes TGS.postman_collection.json
- Delete rogue dev config file
- Fix bug with initial setup in Docker
- Minor README.md update
2020-11-05 20:18:14 -05:00

27 lines
654 B
Bash
Executable File

#!/bin/sh
SCRIPT_VERSION="1.1.1"
echo "tgstation-server 4 container startup script v$SCRIPT_VERSION"
echo "PWD: $PWD"
PROD_CONFIG=/config_data/appsettings.Production.json
HOST_CONFIG=/app/appsettings.Production.json
if [ ! -f $PROD_CONFIG ]; then
echo "$PROD_CONFIG not detected! Creating empty and running setup wizard..."
# Important, config reloading doesn't work with symlinks
export General__SetupWizardMode=Only
echo "{}" > $PROD_CONFIG
fi
ln -v -s $PROD_CONFIG $HOST_CONFIG
if [ ! -f "$HOST_CONFIG" ]; then
echo "ln failed to create symlink!"
exit 1
fi
echo "Executing console runner..."
exec dotnet Tgstation.Server.Host.Console.dll