Update index.py

This commit is contained in:
Mr Chen
2019-03-05 13:46:27 +08:00
parent 942a1fbf1a
commit 665952869a
+5 -4
View File
@@ -62,8 +62,9 @@ def status():
def start():
if public.isAppleSystem():
if public.isAppleSystem():
return "Apple Computer does not support"
data = public.execShell('systemctl start smb')
if data[1] == '':
return 'ok'
@@ -71,7 +72,7 @@ def start():
def stop():
if public.isAppleSystem():
if public.isAppleSystem():
return "Apple Computer does not support"
data = public.execShell('systemctl stop smb')
if data[1] == '':
@@ -80,7 +81,7 @@ def stop():
def restart():
if public.isAppleSystem():
if public.isAppleSystem():
return "Apple Computer does not support"
data = public.execShell('systemctl restart smb')
if data[1] == '':
@@ -89,7 +90,7 @@ def restart():
def reload():
if public.isAppleSystem():
if public.isAppleSystem():
return "Apple Computer does not support"
data = public.execShell('systemctl reload smb')