„scripts/start-server.sh“ ändern
This commit is contained in:
@@ -50,11 +50,48 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "---Starting Redis Server---"
|
||||||
|
screen -S RedisServer -d -m /usr/bin/redis-server
|
||||||
|
sleep 5
|
||||||
|
|
||||||
echo "---Prepare Server---"
|
echo "---Prepare Server---"
|
||||||
|
echo "---Searching for grid files...---"
|
||||||
|
if [ ! -f ${SERVER_DIR}/ShooterGame/ServerGrid.jpg ]; then
|
||||||
|
echo "---ServerGrid.jpg not found, downloading---"
|
||||||
|
cd ${SERVER_DIR}/ShooterGame
|
||||||
|
wget -qi - https://raw.githubusercontent.com/ich777/docker-steamcmd-server/atlas/grid/ServerGrid.jpg
|
||||||
|
if [ ! -f ${SERVER_DIR}/ShooterGame/ServerGrid.jpg ]; then
|
||||||
|
echo "---Something went wrong, couldn't download ServerGrid.jpg---"
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "---ServerGrid.jpg found!---"
|
||||||
|
fi
|
||||||
|
if [ ! -f ${SERVER_DIR}/ShooterGame/ServerGrid.json ]; then
|
||||||
|
echo "---ServerGrid.json not found, downloading---"
|
||||||
|
cd ${SERVER_DIR}/ShooterGame
|
||||||
|
wget -qi - https://raw.githubusercontent.com/ich777/docker-steamcmd-server/atlas/grid/ServerGrid.json
|
||||||
|
if [ ! -f ${SERVER_DIR}/ShooterGame/ServerGrid.json ]; then
|
||||||
|
echo "---Something went wrong, couldn't download ServerGrid.json---"
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "---ServerGrid.json found!---"
|
||||||
|
fi
|
||||||
|
if [ ! -f ${SERVER_DIR}/ShooterGame/ServerGrid.ServerOnly.json ]; then
|
||||||
|
echo "---ServerGrid.ServerOnly.json not found, downloading---"
|
||||||
|
cd ${SERVER_DIR}/ShooterGame
|
||||||
|
wget -qi - https://raw.githubusercontent.com/ich777/docker-steamcmd-server/atlas/grid/ServerGrid.ServerOnly.json
|
||||||
|
if [ ! -f ${SERVER_DIR}/ShooterGame/ServerGrid.ServerOnly.json ]; then
|
||||||
|
echo "---Something went wrong, couldn't download ServerGrid.ServerOnly.json---"
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "---ServerGrid.ServerOnly.json found!---"
|
||||||
|
fi
|
||||||
chmod -R 770 ${DATA_DIR}
|
chmod -R 770 ${DATA_DIR}
|
||||||
echo "---Server ready---"
|
echo "---Server ready---"
|
||||||
|
|
||||||
echo "---Sleep zZz...---"
|
|
||||||
sleep infinity
|
sleep infinity
|
||||||
|
|
||||||
echo "---Start Server---"
|
echo "---Start Server---"
|
||||||
|
Reference in New Issue
Block a user