Fix bug.
This commit is contained in:
parent
38cb9e9587
commit
507049e8ae
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue