This commit is contained in:
BoHung Chiu 2021-04-14 11:07:26 +08:00
parent 38cb9e9587
commit 507049e8ae
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ elsif crontab_sync_jobs.count > 1
%x(CRON="#{crontab_jobs}" && (echo "$CRON" ) | crontab -)
elsif crontab_sync_jobs[0][0...3] == "0 5" #replace old cronjob settings
crontab_jobs = `crontab -l`
crontab_jobs.sub(crontab_sync_jobs[0],sync_cron)
crontab_jobs = crontab_jobs.sub(crontab_sync_jobs[0],sync_cron)
%x(CRON="#{crontab_jobs}" && (echo "$CRON" ) | crontab -)
end
# Describe your gem and declare its dependencies: