mirror of
https://github.com/guezoloic/serverconfig.git
synced 2026-01-25 07:34:23 +00:00
fix: crontab path
This commit is contained in:
@@ -32,7 +32,7 @@ if [[ "--install" == $INSTALLED ]]; then
|
||||
done
|
||||
info_print "You can add more names later by editing $BACKUP."
|
||||
|
||||
CRON_JOB="0 0 * * * $SCRIPT_FILE/aws-backup.sh"
|
||||
CRON_JOB="0 0 * * * $SCRIPT_FILE/scripts/aws-backup.sh"
|
||||
crontab -l | grep -F "$CRON_JOB" > /dev/null 2>&1
|
||||
if ! crontab -l | grep -Fq "$CRON_JOB"; then
|
||||
(crontab -l 2>/dev/null; echo "$CRON_JOB") | crontab -
|
||||
|
||||
@@ -9,7 +9,7 @@ if [[ "--install" == $INSTALLED ]]; then
|
||||
==================================================\n\
|
||||
disk-monitor Installation\n\
|
||||
--------------------------------------------------"
|
||||
CRON_JOB="0 3 * * 1 $SCRIPT_FILE/disk-monitor.sh"
|
||||
CRON_JOB="0 3 * * 1 $SCRIPT_FILE/scripts/disk-monitor.sh"
|
||||
crontab -l | grep -F "$CRON_JOB" > /dev/null 2>&1
|
||||
if ! crontab -l | grep -Fq "$CRON_JOB"; then
|
||||
(crontab -l 2>/dev/null; echo "$CRON_JOB") | crontab -
|
||||
|
||||
Reference in New Issue
Block a user