„scripts/start-server.sh“ ändern

This commit is contained in:
2019-11-11 11:16:56 +01:00
parent f17665116d
commit c3403fde36

View File

@@ -1,4 +1,7 @@
#!/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
@@ -51,11 +54,8 @@ else
fi
echo "---Prepare Server---"
chmod -R 770 ${DATA_DIR}
chmod -R 777 ${DATA_DIR}
echo "---Server ready---"
echo "---Start Server---"
${SERVER_DIR}/srcds_run -console ${GAME_PARAMS} -port ${GAME_PORT}
${SERVER_DIR}/srcds_run -console ${GAME_PARAMS} -port ${GAME_PORT}