mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
- 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
27 lines
654 B
Bash
Executable File
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
|