Update backup.sh

This commit is contained in:
dinger1986 2022-12-31 23:30:54 +00:00 committed by GitHub
parent d3eef45608
commit 45c60ba5f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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