This commit is contained in:
midoks
2023-06-27 14:13:04 +08:00
parent 7b4d31779a
commit e421292c9e
2 changed files with 89 additions and 2 deletions
+2 -2
View File
@@ -133,7 +133,7 @@ class App:
if os.path.exists(systemDir) and not os.path.exists(systemService):
service_path = mw.getServerDir()
se_content = mw.readFile(systemServiceTpl)
se_content = se_content.replace('{$SERVER_PATH}', service_path)
se_content = self.contentReplace(se_content)
mw.writeFile(systemService, se_content)
mw.execShell('systemctl daemon-reload')
@@ -149,7 +149,7 @@ class App:
return 'ok'
return 'fail'
data = mw.execShell(self.__SR + file + ' ' + method)
data = mw.execShell(file + ' ' + method)
if data[1] == '':
return 'ok'
return data[0]