forked from LiamAEdwards/SS14-Docker-Linux-Server
Make start script detect SS14.Watchdog path
This commit is contained in:
14
start.sh
14
start.sh
@@ -6,7 +6,15 @@ if [ ! "$(ls -A /ss14)" ]; then
|
||||
cp -R /ss14-default/* /ss14/
|
||||
fi
|
||||
|
||||
# Start the original command
|
||||
cd /ss14/publish/
|
||||
./SS14.Watchdog "$@"
|
||||
# Start the watchdog
|
||||
cd /ss14/publish/ || exit 1
|
||||
|
||||
if [ -x "./SS14.Watchdog" ]; then
|
||||
exec ./SS14.Watchdog "$@"
|
||||
elif [ -d "./SS14.Watchdog" ] && [ -x "./SS14.Watchdog/SS14.Watchdog" ]; then
|
||||
cd ./SS14.Watchdog || exit 1
|
||||
exec ./SS14.Watchdog "$@"
|
||||
else
|
||||
echo "SS14.Watchdog executable not found in /ss14/publish" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user