Update index.py

This commit is contained in:
dami 2026-06-22 14:39:29 +08:00
parent 0b99a4ae74
commit 3a8b799df6
1 changed files with 6 additions and 2 deletions

View File

@ -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'