fixed issue where the server wouldnt start on second boot
This commit is contained in:
parent
977e3a5ab9
commit
ded9892d87
1 changed files with 15 additions and 5 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -47,11 +47,21 @@ EXPOSE ${PORT}/udp
|
|||
VOLUME ["/data"]
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c", "\
|
||||
if [ ! -f ${DATADIR}/hlds_run ]; then \
|
||||
echo 'Installing Counter-Strike server...'; \
|
||||
${STEAMCMDDIR}/steamcmd.sh +force_install_dir ${DATADIR} +login anonymous \
|
||||
+app_set_config 90 mod cstrike \
|
||||
+app_update 90 validate \
|
||||
+app_update 70 validate \
|
||||
+app_update 10 validate \
|
||||
+quit && \
|
||||
+quit; \
|
||||
else \
|
||||
if [ \"$UPDATE\" = \"1\" ]; then \
|
||||
echo 'Updating Counter-Strike server...'; \
|
||||
${STEAMCMDDIR}/steamcmd.sh +force_install_dir ${DATADIR} +login anonymous \
|
||||
+app_update 90 validate \
|
||||
+quit; \
|
||||
else \
|
||||
echo 'Skipping update, starting server...'; \
|
||||
fi; \
|
||||
fi; \
|
||||
cd ${DATADIR} && \
|
||||
exec bash hlds_run -game cstrike -console +ip 0.0.0.0 -port ${PORT} +map ${MAP}"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue