Update pfsense-backup.sh

This commit is contained in:
2020-09-12 12:56:14 +02:00
committed by GitHub
parent ab8e82f88b
commit 25d80008f0
+3 -1
View File
@@ -62,8 +62,10 @@ if [ $cron -eq 1 ]; then
if [ -z "$FROM_CRON" ]; then
if [ -f $destination/crontab.txt ]; then
crontab $destination/crontab.txt
fi
else
echo "$PFSENSE_CRON_SCHEDULE FROM_CRON=1 /pfsense-backup.sh" | crontab -
echo "$PFSENSE_CRON_SCHEDULE FROM_CRON=1 /pfsense-backup.sh" >> $destination/crontab.txt
fi
crond -f
else
do_backup