mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:39:25 +08:00
update
This commit is contained in:
@@ -200,7 +200,7 @@ 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")
|
||||
#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()
|
||||
|
||||
@@ -15,6 +15,8 @@ serverPath=$(dirname "$rootPath")
|
||||
P_VER=`python3 -V | awk '{print $2}'`
|
||||
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 /www/server/mdserver-web/plugins/pgadmin && bash install.sh install 4
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user