Update index.py
This commit is contained in:
parent
0b99a4ae74
commit
3a8b799df6
|
|
@ -206,11 +206,15 @@ class App:
|
|||
mw.execShell('systemctl disable nezha-dashboard')
|
||||
return 'ok'
|
||||
|
||||
def getVersion(self):
|
||||
ver_file = self.getServerDir()+"/version.pl"
|
||||
return mw.readFile(version)
|
||||
|
||||
def uninstall_pre_inspection(self):
|
||||
version = self.getVersion()
|
||||
data_dir = self.getDataDir()
|
||||
if os.path.exists(data_dir):
|
||||
self.stop(version)
|
||||
|
||||
self.stop()
|
||||
if mw.isDebugMode():
|
||||
return 'ok'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue