This commit is contained in:
Mr Chen
2019-01-16 13:27:51 +08:00
parent d900298a7b
commit 1ed469b5f6
4 changed files with 30 additions and 15 deletions
+3 -6
View File
@@ -180,8 +180,7 @@ def saveConf():
def initdStatus():
if not app_debug:
os_name = public.getOs()
if os_name == 'darwin':
if public.isAppleSystem():
return "Apple Computer does not support"
initd_bin = getInitDFile()
if os.path.exists(initd_bin):
@@ -192,8 +191,7 @@ def initdStatus():
def initdInstall():
import shutil
if not app_debug:
os_name = public.getOs()
if os_name == 'darwin':
if public.isAppleSystem():
return "Apple Computer does not support"
mem_bin = initDreplace()
@@ -205,8 +203,7 @@ def initdInstall():
def initdUinstall():
if not app_debug:
os_name = public.getOs()
if os_name == 'darwin':
if public.isAppleSystem():
return "Apple Computer does not support"
initd_bin = getInitDFile()
os.remove(initd_bin)