summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/cron.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/cron.py b/system/cron.py
index d3e838c5..8152c6e5 100644
--- a/system/cron.py
+++ b/system/cron.py
@@ -642,10 +642,10 @@ def main():
crontab.remove_env(name)
changed = True
else:
- job = crontab.get_cron_job(minute, hour, day, month, weekday, job, special_time, disabled)
old_job = crontab.find_job(name)
if do_install:
+ job = crontab.get_cron_job(minute, hour, day, month, weekday, job, special_time, disabled)
if len(old_job) == 0:
crontab.add_job(name, job)
changed = True