Update start-server.sh

This commit is contained in:
2019-05-01 15:41:52 +02:00
committed by GitHub
parent 84a240cf4d
commit ee632b5aad

View File

@@ -53,7 +53,7 @@ else
fi
echo "---Checking if everything is installed correctly---"
if [ ! -d ${SERVER_DIR}/dmc ]; then
if [ ! -d ${SERVER_DIR}/cstrike ]; then
echo "---Not everything is installed correctly, trying again---"
if [ "${USERNAME}" == "" ]; then
${STEAMCMD_DIR}/steamcmd.sh \
@@ -78,12 +78,7 @@ echo "---Prepare Server---"
mkdir ${DATA_DIR}/.steam/sdk32
cp ${SERVER_DIR}/steamclient.so ${DATA_DIR}/.steam/sdk32/steamclient.so
chmod -R 770 ${DATA_DIR}
if [ ! -d ${SERVER_DIR}/cstrike ]; then
echo "---Server ready---"
else
rm -R ${SERVER_DIR}/cstrike
echo "---Server ready---"
fi
echo "---Start Server---"
cd ${SERVER_DIR}