Update index.py

This commit is contained in:
midoks 2023-06-28 02:30:28 +08:00
parent 41ee25aa7b
commit 7a28f8f57a
1 changed files with 1 additions and 0 deletions

View File

@ -291,6 +291,7 @@ class App:
if not os.path.exists(path):
d = {}
cmd_un = 'cd ' + self.getServerDir() + '/dashboard && ./nezha conf -u ""'
mw.execShell(cmd_un)
td = mw.execShell(cmd_un)
d['username'] = td[0].strip()