Fix /etc/cron.d/autobackup.

The previous code wrote

    MAILTO=\n30 3 * * * cd /;/entrypoint.sh app:backup

(with a literal backslash n).

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2018-12-11 17:26:54 -08:00
parent 3772b29238
commit b471a8271b

View File

@@ -283,7 +283,7 @@ autoBackupConfiguration() {
echo "Auto backup is disabled. Continuing."
return 0
fi
echo "MAILTO=""\n$AUTO_BACKUP_INTERVAL cd /;/entrypoint.sh app:backup" > /etc/cron.d/autobackup
printf 'MAILTO=""\n%s cd /;/entrypoint.sh app:backup' "$AUTO_BACKUP_INTERVAL" > /etc/cron.d/autobackup
echo "Auto backup enabled."
}
initialConfiguration() {