mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 02:49:25 +08:00
Update crontab.py
This commit is contained in:
@@ -520,7 +520,8 @@ echo "--------------------------------------------------------------------------
|
||||
if mw.isAppleSystem():
|
||||
return mw.returnData(True, 'ok')
|
||||
|
||||
mw.execShell("mkdir -p /var/spool/cron/crontabs")
|
||||
if not os.path.exists("/var/spool/cron/crontabs"):
|
||||
mw.execShell("mkdir -p /var/spool/cron/crontabs")
|
||||
|
||||
file = '/var/spool/cron/crontabs/root'
|
||||
sys_os = mw.getOs()
|
||||
|
||||
Reference in New Issue
Block a user