Added check on start script to check if the server files where downloaded or not

This commit is contained in:
NATroutter
2026-01-13 16:00:04 +02:00
parent 3d86c6b18e
commit da110e6e9a

View File

@@ -40,6 +40,13 @@ if [ "${AUTOMATIC_UPDATE}" = "1" ]; then
$DOWNLOADER
fi
# Check if server files were downloaded correctly
if [ ! -f "HytaleServer.jar" ]; then
echo "Error: HytaleServer.jar not found!"
echo "Server files were not downloaded correctly."
exit 1
fi
# Obtain authentication tokens
echo "Obtaining authentication tokens..."