mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-10-31 22:19:00 +00:00
Move executable scripts to /usr/local/bin
They are currently in the same folder as the backup files which is on a volume. This makes it impossible to make changes to these scripts and have them applied the next time somebody upgrades and builds these docker images again.
This commit is contained in:
parent
cf76173bd1
commit
6fdc9c6118
2 changed files with 4 additions and 4 deletions
|
@ -2,8 +2,8 @@ FROM postgres:13.0
|
|||
|
||||
# crontab
|
||||
RUN mkdir /backups
|
||||
COPY ./backup.sh /backups
|
||||
COPY ./weed.sh /backups
|
||||
COPY ./backup.sh /usr/local/bin/bookwyrm-backup.sh
|
||||
COPY ./weed.sh /usr/local/bin/bookwyrm-weed.sh
|
||||
COPY ./cronfile /etc/cron.d/cronfile
|
||||
RUN apt-get update && apt-get -y --no-install-recommends install cron
|
||||
RUN chmod 0644 /etc/cron.d/cronfile
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
0 0 * * * /backups/backup.sh
|
||||
0 0 * * * /usr/local/bin/bookwyrm-backup.sh
|
||||
# If uncommented, this script will weed the backups directory. It will keep the 14
|
||||
# most-recent backups, then one backup/week for the next four backups, then one
|
||||
# backup/month after that.
|
||||
# 0 1 * * * /backups/weed.sh -d 14 -w 4 -m -1 /backups
|
||||
# 0 1 * * * /usr/local/bin/bookwyrm-weed.sh -d 14 -w 4 -m -1 /backups
|
||||
|
|
Loading…
Reference in a new issue