mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -62,8 +62,9 @@ def status():
|
|||||||
|
|
||||||
|
|
||||||
def start():
|
def start():
|
||||||
if public.isAppleSystem():
|
if public.isAppleSystem():
|
||||||
return "Apple Computer does not support"
|
return "Apple Computer does not support"
|
||||||
|
|
||||||
data = public.execShell('systemctl start smb')
|
data = public.execShell('systemctl start smb')
|
||||||
if data[1] == '':
|
if data[1] == '':
|
||||||
return 'ok'
|
return 'ok'
|
||||||
@@ -71,7 +72,7 @@ def start():
|
|||||||
|
|
||||||
|
|
||||||
def stop():
|
def stop():
|
||||||
if public.isAppleSystem():
|
if public.isAppleSystem():
|
||||||
return "Apple Computer does not support"
|
return "Apple Computer does not support"
|
||||||
data = public.execShell('systemctl stop smb')
|
data = public.execShell('systemctl stop smb')
|
||||||
if data[1] == '':
|
if data[1] == '':
|
||||||
@@ -80,7 +81,7 @@ def stop():
|
|||||||
|
|
||||||
|
|
||||||
def restart():
|
def restart():
|
||||||
if public.isAppleSystem():
|
if public.isAppleSystem():
|
||||||
return "Apple Computer does not support"
|
return "Apple Computer does not support"
|
||||||
data = public.execShell('systemctl restart smb')
|
data = public.execShell('systemctl restart smb')
|
||||||
if data[1] == '':
|
if data[1] == '':
|
||||||
@@ -89,7 +90,7 @@ def restart():
|
|||||||
|
|
||||||
|
|
||||||
def reload():
|
def reload():
|
||||||
if public.isAppleSystem():
|
if public.isAppleSystem():
|
||||||
return "Apple Computer does not support"
|
return "Apple Computer does not support"
|
||||||
|
|
||||||
data = public.execShell('systemctl reload smb')
|
data = public.execShell('systemctl reload smb')
|
||||||
|
|||||||
Reference in New Issue
Block a user