mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update crontab.py
This commit is contained in:
@@ -526,7 +526,7 @@ echo "--------------------------------------------------------------------------
|
|||||||
sys_name = mw.getOsName()
|
sys_name = mw.getOsName()
|
||||||
if sys_os == 'darwin':
|
if sys_os == 'darwin':
|
||||||
file = '/etc/crontab'
|
file = '/etc/crontab'
|
||||||
elif sys_os.startswith("freebsd"):
|
elif sys_name.startswith("freebsd"):
|
||||||
file = '/var/cron/tabs/root'
|
file = '/var/cron/tabs/root'
|
||||||
elif sys_name.startswith("ubuntu"):
|
elif sys_name.startswith("ubuntu"):
|
||||||
file = '/var/spool/cron/root'
|
file = '/var/spool/cron/root'
|
||||||
|
|||||||
Reference in New Issue
Block a user