Fix: 修复环境变量无法穿透的问题,导致crontab无法正确更新模组

This commit is contained in:
2025-07-24 23:54:22 +08:00
parent 7e15b3a84e
commit ee8a5840df
3 changed files with 22 additions and 2 deletions

View File

@@ -39,8 +39,7 @@ RUN chown -R steam:steam ${STEAMCMD_DIR} && \
chown steam:steam /opt/updatemod.sh && \
chown -R steam:steam /opt/games
# 创建crontab配置文件
RUN echo "*/15 * * * * /opt/updatemod.sh >> /var/log/updatemod.log 2>&1" > /etc/cron.d/updatemod
RUN touch /etc/cron.d/updatemod
WORKDIR ${STEAMCMD_DIR}