From dd5195de37957c48447c8a0118330e6919d348a7 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 5 Mar 2019 13:46:27 +0800 Subject: [PATCH] Update index.py --- plugins/samba/index.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/samba/index.py b/plugins/samba/index.py index f73cfaa3f..520e5c982 100755 --- a/plugins/samba/index.py +++ b/plugins/samba/index.py @@ -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')