diff --git a/backup.sh b/backup.sh index d336e0b1..84911ff4 100755 --- a/backup.sh +++ b/backup.sh @@ -31,6 +31,8 @@ rm -f $TMP_FILE if [[ $* == *--schedule* ]]; then (crontab -l 2>/dev/null; echo "0 0 * * * /rmm/backup.sh") | crontab - +printf >&2 "${GREEN}Backups setup to run at midnight and rotate.${NC}\n" +exit fi if [ $EUID -eq 0 ]; then