pull/624/head
Mr Chen 7 months ago
parent 3f7bce197f
commit c39d21b300
  1. 2
      plugins/pgadmin/index.py
  2. 1
      plugins/pgadmin/install.sh

@ -200,6 +200,8 @@ def initReplace():
setCfg('password', password) setCfg('password', password)
mw.writeFile(pma_path, pass_cmd) 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 # systemd
systemDir = mw.systemdCfgDir() systemDir = mw.systemdCfgDir()
systemService = systemDir + '/pgadmin.service' systemService = systemDir + '/pgadmin.service'

@ -20,6 +20,7 @@ echo "python:$P_VER"
# source /www/server/pgadmin/run/bin/activate # 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
# 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 start
# cd /www/server/mdserver-web && python3 plugins/pgadmin/index.py stop # cd /www/server/mdserver-web && python3 plugins/pgadmin/index.py stop

Loading…
Cancel
Save