Update index.py

This commit is contained in:
Mr Chen
2024-10-02 03:33:28 +08:00
parent 45f51954f9
commit 3787913a12
+2 -1
View File
@@ -64,6 +64,7 @@ def getPort():
return tmp.groups()[0].strip()
def getHomePage():
try:
port = getPort()
@@ -209,7 +210,7 @@ def initReplace():
pg_init_bash = getPluginDir()+'/pg_init.sh'
pg_rand = mw.getRandomString(8)
pg_username = "mw."+pg_rand+"@gmail.com"
setCfg('web_pg_password', pg_username)
setCfg('web_pg_username', pg_username)
pg_password = mw.getRandomString(10)
setCfg('web_pg_password', pg_password)
t = mw.execShell("bash "+ pg_init_bash + " " + pg_username + " " + pg_password)