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 bfc2f2d2..654ca410 100644
--- a/system/cron.py
+++ b/system/cron.py
@@ -645,10 +645,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