pull/816/head
dami 1 day ago
parent 4158f25b35
commit bb41f89d44
  1. 1
      web/core/mw.py
  2. 3
      web/utils/crontab.py

@ -562,6 +562,7 @@ def getSslCrt():
def getOs():
# python3 -c 'import sys; print(sys.platform)'
return sys.platform
def getOsName():

@ -523,11 +523,12 @@ echo "--------------------------------------------------------------------------
file = '/var/spool/cron/crontabs/root'
sys_os = mw.getOs()
sys_name = mw.getOsName()
if sys_os == 'darwin':
file = '/etc/crontab'
elif sys_os.startswith("freebsd"):
file = '/var/cron/tabs/root'
elif sys_os.startswith("ubuntu"):
elif sys_name.startswith("ubuntu"):
file = '/var/spool/cron/root'
if not os.path.exists(file):

Loading…
Cancel
Save