From 45c60ba5f5aa8f38322471e217fbf929ba3333bc Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Sat, 31 Dec 2022 23:30:54 +0000 Subject: [PATCH] Update backup.sh --- backup.sh | 2 ++ 1 file changed, 2 insertions(+) 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