mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:49:25 +08:00
update
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user