diff --git a/plugins/pgadmin/index.py b/plugins/pgadmin/index.py index de06ba5ad1..29c2448239 100755 --- a/plugins/pgadmin/index.py +++ b/plugins/pgadmin/index.py @@ -200,6 +200,8 @@ 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") + # systemd systemDir = mw.systemdCfgDir() systemService = systemDir + '/pgadmin.service' diff --git a/plugins/pgadmin/install.sh b/plugins/pgadmin/install.sh index 745d0a0848..f7ee47e511 100755 --- a/plugins/pgadmin/install.sh +++ b/plugins/pgadmin/install.sh @@ -20,6 +20,7 @@ echo "python:$P_VER" # source /www/server/pgadmin/run/bin/activate # python /www/server/pgadmin/run/lib/python3.10/site-packages/pgadmin4/setup.py +# python /www/server/pgadmin/run/lib/python3.10/site-packages/pgadmin4/setup.py add-user xxx@gmail.com 123123 # cd /www/server/mdserver-web && python3 plugins/pgadmin/index.py start # cd /www/server/mdserver-web && python3 plugins/pgadmin/index.py stop @@ -81,7 +82,7 @@ Install_pgadmin() fi pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v8.10/pip/pgadmin4-8.10-py3-none-any.whl - + cd ${rootPath} && python3 ${rootPath}/plugins/pgadmin/index.py start echo '安装完成' }