This commit is contained in:
@@ -3,10 +3,12 @@
|
|||||||
set +e
|
set +e
|
||||||
|
|
||||||
# Create crontab in a writable location and set proper permissions
|
# Create crontab in a writable location and set proper permissions
|
||||||
echo "${CRONTAB:-"0 * * * *"} /scripts/backup.sh >> /proc/1/fd/1 2>&1" > /etc/crontabs/root
|
mkdir -p /tmp/crontabs
|
||||||
|
echo "${CRONTAB:-"0 * * * *"} /scripts/backup.sh >> /proc/1/fd/1 2>&1" > /tmp/crontabs/root
|
||||||
|
chmod 644 /tmp/crontabs/root
|
||||||
|
|
||||||
# Run initial backup
|
# Run initial backup
|
||||||
/scripts/backup.sh
|
/scripts/backup.sh
|
||||||
|
|
||||||
# Start crond in foreground with debug output
|
# Start crond in foreground with debug output
|
||||||
exec crond -f -d 0
|
exec crond -f -c /tmp/crontabs -d 0
|
||||||
|
|||||||
Reference in New Issue
Block a user