Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Oct 1, 2024
1 parent 3f7bce1 commit c39d21b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions plugins/pgadmin/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] 123123")

# systemd
systemDir = mw.systemdCfgDir()
systemService = systemDir + '/pgadmin.service'
Expand Down
3 changes: 2 additions & 1 deletion plugins/pgadmin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] 123123
# cd /www/server/mdserver-web && python3 plugins/pgadmin/index.py start
# cd /www/server/mdserver-web && python3 plugins/pgadmin/index.py stop

Expand Down Expand Up @@ -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 '安装完成'
}
Expand Down

0 comments on commit c39d21b

Please sign in to comment.