[FIX]RsyncVolumes : fix environment for cron
This commit is contained in:
parent
cf48101dfb
commit
396da4393b
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
printenv >> /etc/environment
|
||||||
envsubst < /opt/backup/rsync.template > /opt/backup/rsync.sh
|
envsubst < /opt/backup/rsync.template > /opt/backup/rsync.sh
|
||||||
crontab ./crontab && touch /var/log/cron.log && crond && tail -f /var/log/cron.log
|
crontab ./crontab && touch /var/log/cron.log && crond && tail -f /var/log/cron.log
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
printenv >> /etc/environment
|
||||||
envsubst < /opt/backup/rsync.template > /opt/backup/rsync.sh
|
envsubst < /opt/backup/rsync.template > /opt/backup/rsync.sh
|
||||||
crontab ./crontab && touch /var/log/cron.log && cron && tail -f /var/log/cron.log
|
crontab ./crontab && touch /var/log/cron.log && cron && tail -f /var/log/cron.log
|
||||||
|
Loading…
Reference in New Issue
Block a user