fixed issue where the server wouldnt start on second boot

This commit is contained in:
bacalhau 2025-11-07 22:47:55 +00:00
parent 977e3a5ab9
commit ded9892d87

View file

@ -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 && \
cd ${DATADIR} && \
exec bash hlds_run -game cstrike -console +ip 0.0.0.0 -port ${PORT} +map ${MAP}"]
+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}"]