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:
@@ -530,8 +530,8 @@ echo "--------------------------------------------------------------------------
|
||||
file = '/etc/crontab'
|
||||
elif sys_name.startswith("freebsd"):
|
||||
file = '/var/cron/tabs/root'
|
||||
elif sys_name.startswith("ubuntu"):
|
||||
file = '/var/spool/cron/root'
|
||||
# elif sys_name.startswith("ubuntu"):
|
||||
# file = '/var/spool/cron/root'
|
||||
|
||||
if not os.path.exists(file):
|
||||
mw.writeFile(file, '')
|
||||
|
||||
Reference in New Issue
Block a user