mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
out to files
This commit is contained in:
parent
f7eeb41d97
commit
45fba8428f
@ -1227,10 +1227,12 @@ function task_automate {
|
|||||||
MESSAGE="Removing Existing Automation"
|
MESSAGE="Removing Existing Automation"
|
||||||
echo_stat
|
echo_stat
|
||||||
|
|
||||||
crontab -l > $CRON_TEMP
|
crontab -l > cronjob-old.tmp
|
||||||
sed '/pull/d' $CRON_TEMP > $CRON_NEW
|
sed '/pull/d' cronjob-old.tmp > cronjob-new.tmp
|
||||||
crontab $CRON_NEW 2>/dev/null
|
crontab cronjob-new.tmp 2>/dev/null
|
||||||
error_validate
|
error_validate
|
||||||
|
rm cronjob-old.tmp
|
||||||
|
rm cronjob-new.tmp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MESSAGE="Saving New Automation"
|
MESSAGE="Saving New Automation"
|
||||||
|
Loading…
Reference in New Issue
Block a user