Update index.py
This commit is contained in:
parent
a1464006db
commit
dee7abc850
|
|
@ -200,7 +200,10 @@ def initReplace():
|
|||
setCfg('password', password)
|
||||
mw.writeFile(pma_path, pass_cmd)
|
||||
|
||||
#mw.execShell("python /www/server/pgadmin/run/lib/python3.10/site-packages/pgadmin4/setup.py add-user mw@gmail.com 123123")
|
||||
judge_file = getServerDir()+'/data/pgadmin4/pgadmin4.db'
|
||||
if not os.path.exists(judge_file):
|
||||
pg_init_bash = getPluginDir()+'/pg_init.sh'
|
||||
mw.execShell("bash "+pg_init_bash)
|
||||
|
||||
# systemd
|
||||
systemDir = mw.systemdCfgDir()
|
||||
|
|
|
|||
Loading…
Reference in New Issue