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
20
Dockerfile
20
Dockerfile
|
|
@ -47,11 +47,21 @@ EXPOSE ${PORT}/udp
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "-c", "\
|
ENTRYPOINT ["/bin/bash", "-c", "\
|
||||||
|
if [ ! -f ${DATADIR}/hlds_run ]; then \
|
||||||
|
echo 'Installing Counter-Strike server...'; \
|
||||||
${STEAMCMDDIR}/steamcmd.sh +force_install_dir ${DATADIR} +login anonymous \
|
${STEAMCMDDIR}/steamcmd.sh +force_install_dir ${DATADIR} +login anonymous \
|
||||||
+app_set_config 90 mod cstrike \
|
+app_set_config 90 mod cstrike \
|
||||||
+app_update 90 validate \
|
+app_update 90 validate \
|
||||||
+app_update 70 validate \
|
+quit; \
|
||||||
+app_update 10 validate \
|
else \
|
||||||
+quit && \
|
if [ \"$UPDATE\" = \"1\" ]; then \
|
||||||
cd ${DATADIR} && \
|
echo 'Updating Counter-Strike server...'; \
|
||||||
exec bash hlds_run -game cstrike -console +ip 0.0.0.0 -port ${PORT} +map ${MAP}"]
|
${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