Update index.py

This commit is contained in:
midoks
2020-06-08 08:11:33 +08:00
parent 5f311a894d
commit 296499b61c
+1 -8
View File
@@ -106,13 +106,7 @@ def getInitDFile():
def initdStatus():
if not app_debug:
if public.isAppleSystem():
return "Apple Computer does not support"
initd_bin = getInitDFile()
if os.path.exists(initd_bin):
return 'ok'
return 'fail'
return 'ok'
def initdInstall():
@@ -121,7 +115,6 @@ def initdInstall():
if public.isAppleSystem():
return "Apple Computer does not support"
public.execShell('chmod +x ' + initd_bin)
public.execShell('chkconfig --add ' + getPluginName())
return 'ok'