[FIX]RsyncVolumes : fix environment for cron

This commit is contained in:
Fabien BOURGEOIS 2021-03-13 08:17:32 +01:00
parent cf48101dfb
commit 396da4393b
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash
printenv >> /etc/environment
envsubst < /opt/backup/rsync.template > /opt/backup/rsync.sh
crontab ./crontab && touch /var/log/cron.log && crond && tail -f /var/log/cron.log

View File

@ -1,4 +1,5 @@
#!/bin/bash
printenv >> /etc/environment
envsubst < /opt/backup/rsync.template > /opt/backup/rsync.sh
crontab ./crontab && touch /var/log/cron.log && cron && tail -f /var/log/cron.log