Make start script detect SS14.Watchdog path

This commit is contained in:
Codex Bot
2025-12-14 08:36:26 +01:00
parent ec1d063d83
commit 8b66eca6a3

View File

@@ -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