From 396da4393b50b685d8f1c4211ccb1ca7c545d702 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Sat, 13 Mar 2021 08:17:32 +0100 Subject: [PATCH] [FIX]RsyncVolumes : fix environment for cron --- backups/rsyncvolumes/launch.c7.sh | 1 + backups/rsyncvolumes/launch.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/backups/rsyncvolumes/launch.c7.sh b/backups/rsyncvolumes/launch.c7.sh index 91d33ff..e14ccb0 100644 --- a/backups/rsyncvolumes/launch.c7.sh +++ b/backups/rsyncvolumes/launch.c7.sh @@ -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 diff --git a/backups/rsyncvolumes/launch.sh b/backups/rsyncvolumes/launch.sh index 1764b59..b346039 100644 --- a/backups/rsyncvolumes/launch.sh +++ b/backups/rsyncvolumes/launch.sh @@ -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