„scripts/start-server.sh“ ändern

This commit is contained in:
2020-02-25 12:19:05 +01:00
parent 94a9d103b6
commit a7a8798ea8

View File

@@ -1,7 +1,4 @@
#!/bin/bash
echo "---Setting umask to ${UMASK}---"
umask ${UMASK}
if [ ! -f ${STEAMCMD_DIR}/steamcmd.sh ]; then
echo "SteamCMD not found!"
wget -q -O ${STEAMCMD_DIR}/steamcmd_linux.tar.gz http://media.steampowered.com/client/steamcmd_linux.tar.gz
@@ -63,9 +60,9 @@ if [ ! -f ${DATA_DIR}/.steam/sdk32/steamclient.so ]; then
fi
cp -R ${STEAMCMD_DIR}/linux32/* ${DATA_DIR}/.steam/sdk32/
fi
echo "---Please wait---"
chmod -R 777 ${DATA_DIR}
chmod -R ${DATA_PERM} ${DATA_DIR}
echo "---Server ready---"
echo "---Start Server---"
${SERVER_DIR}/srcds_run -game ${GAME_NAME} ${GAME_PARAMS} +port ${GAME_PORT}
cd ${SERVER_DIR}
${SERVER_DIR}/srcds_run -game ${GAME_NAME} ${GAME_PARAMS} -console +port ${GAME_PORT}