diff options
| -rwxr-xr-x | extras/snap_scheduler/gcron.py | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/snap_scheduler/gcron.py b/extras/snap_scheduler/gcron.py index e67e48cc932..a21c40f894f 100755 --- a/extras/snap_scheduler/gcron.py +++ b/extras/snap_scheduler/gcron.py @@ -120,6 +120,10 @@ def main():      initLogger(script_name)      global start_time      if sys.argv[1] == "--update": +        if not os.path.exists(GCRON_TASKS): +            return +        if not os.path.exists(GCRON_CROND_TASK): +            return          if os.lstat(GCRON_TASKS).st_mtime > \             os.lstat(GCRON_CROND_TASK).st_mtime:              try:  | 
