mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
feat: ✨ Add variables Env for cron feature
This commit is contained in:
@@ -15,8 +15,6 @@ RUN mv rcon-cli /usr/bin/rcon-cli
|
||||
RUN rm -f /var/run/crond.pid
|
||||
COPY ./scripts/backup.sh /usr/local/bin/backup
|
||||
RUN chmod +x /usr/local/bin/backup
|
||||
RUN echo "0 3 * * * root bash /usr/local/bin/backup" > /etc/cron.d/backups-cron
|
||||
RUN chmod 0644 /etc/cron.d/backups-cron
|
||||
|
||||
ENV PORT= \
|
||||
PUID=1000 \
|
||||
@@ -32,7 +30,10 @@ ENV PORT= \
|
||||
UPDATE_ON_BOOT=true \
|
||||
RCON_ENABLED=true \
|
||||
RCON_PORT=25575 \
|
||||
QUERY_PORT=27015
|
||||
QUERY_PORT=27015 \
|
||||
BACKUP_ENABLED=true \
|
||||
DAYS_TO_KEEP=7 \
|
||||
BACKUP_CRON_EXPRESSION="0 0 * * *"
|
||||
|
||||
COPY ./scripts/* /home/steam/server/
|
||||
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/backup.sh
|
||||
|
||||
Reference in New Issue
Block a user