From fb8ca67ac1b39d70434e2708bd0fa0b285845865 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 11 Sep 2025 17:25:36 +0800 Subject: [PATCH] Update crontab.py --- web/utils/crontab.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/utils/crontab.py b/web/utils/crontab.py index e1ec58ccc..be9108883 100644 --- a/web/utils/crontab.py +++ b/web/utils/crontab.py @@ -531,6 +531,8 @@ echo "-------------------------------------------------------------------------- elif sys_name.startswith("ubuntu"): file = '/var/spool/cron/root' + mw.execShell("mkdir -p /var/spool/cron/crontabs") + if not os.path.exists(file): mw.writeFile(file, '') content = mw.readFile(file)