From 1cf471704ca20e4bcb5eb0c719df3ec90fc40fd0 Mon Sep 17 00:00:00 2001 From: moonlightwatch Date: Sat, 29 Mar 2025 14:04:21 +0800 Subject: [PATCH] fix: rename cron_name to cron_shell --- web/utils/crontab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/crontab.py b/web/utils/crontab.py index 093ec822e..553192152 100644 --- a/web/utils/crontab.py +++ b/web/utils/crontab.py @@ -159,7 +159,7 @@ class crontab(object): cron_path = mw.getServerDir() + '/cron' cron_shell = self.getShell(data) - cmd += ' ' + cron_path + '/' + cron_name + ' >> ' + cron_path + '/' + cron_name + '.log 2>&1' + cmd += ' ' + cron_path + '/' + cron_shell + ' >> ' + cron_path + '/' + cron_shell + '.log 2>&1' if not mw.isAppleSystem(): sh_data = self.writeShell(cmd)