Merge pull request #715 from moonlightwatch/fix/crontab_echo_name_error

fix: rename cron_name to cron_shell
pull/716/head
Mr Chen 1 month ago committed by GitHub
commit b7dd2fa05d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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)

Loading…
Cancel
Save