This commit is contained in:
Mr Chen
2024-10-02 01:26:26 +08:00
parent 7a7b77887c
commit 24dab4775c
3 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ 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") #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()
+2
View File
@@ -15,6 +15,8 @@ serverPath=$(dirname "$rootPath")
P_VER=`python3 -V | awk '{print $2}'` P_VER=`python3 -V | awk '{print $2}'`
echo "python:$P_VER" echo "python:$P_VER"
# https://cn.linux-console.net/?p=6560
# cd /Users/midoks/Desktop/mwdev/server/mdserver-web/plugins/pgadmin && bash install.sh install 4 # cd /Users/midoks/Desktop/mwdev/server/mdserver-web/plugins/pgadmin && bash install.sh install 4
# cd /www/server/mdserver-web/plugins/pgadmin && bash install.sh install 4 # cd /www/server/mdserver-web/plugins/pgadmin && bash install.sh install 4
+12
View File
@@ -0,0 +1,12 @@
#!/bin/expect -d
set timeout 20
spawn gunicorn --bind unix:/tmp/pgadmin4.sock \
--workers=1 \
--threads=25 \
--chdir /www/server/pgadmin/run/lib/python3.10/site-packages/pgadmin4 pgAdmin4:app
expect {
"Email address:" { send "mdserver-web@gmail.com\r"; exp_continue }
"Password" { send "123123\r" }
}
expect eof