diff --git a/run.sh b/run.sh index 86fffc3..7092681 100755 --- a/run.sh +++ b/run.sh @@ -36,6 +36,7 @@ else printf "Skipping update as flag is set\\n" fi +mkdir -p "${GAMECONFIGDIR}/Config/LinuxServer" "${GAMECONFIGDIR}/Logs" "${GAMECONFIGDIR}/SaveGames/server" "${GAMESAVESDIR}/server" cp -a "/config/saves/." "/config/backups/" cp -a "${GAMESAVESDIR}/server/." "/config/backups" # useless in first run, but useful in additional runs rm -rf "${GAMESAVESDIR}/server" @@ -51,4 +52,4 @@ fi cd /config/gamefiles || exit 1 -Engine/Binaries/Linux/UE4Server-Linux-Shipping FactoryGame -log -NoSteamClient -unattended ?listen -Port="$SERVERGAMEPORT" -BeaconPort="$SERVERBEACONPORT" -ServerQueryPort="$SERVERQUERYPORT" -multihome="$SERVERIP" \ No newline at end of file +exec Engine/Binaries/Linux/UE4Server-Linux-Shipping FactoryGame -log -NoSteamClient -unattended ?listen -Port="$SERVERGAMEPORT" -BeaconPort="$SERVERBEACONPORT" -ServerQueryPort="$SERVERQUERYPORT" -multihome="$SERVERIP"