mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
492 B
17 lines
492 B
#!/bin/bash
|
|
|
|
python_ver=`ls /www/server/pgadmin/run/lib/ | grep python | cut -d \ -f 1 | awk 'END {print}'`
|
|
|
|
expect <<-EOF
|
|
set time 10
|
|
spawn gunicorn --bind unix:/tmp/pgadmin4.sock \
|
|
--workers=1 \
|
|
--threads=25 \
|
|
--chdir /www/server/pgadmin/run/lib/${python_ver}/site-packages/pgadmin4 pgAdmin4:app
|
|
expect {
|
|
"Email address:" { send "mdserver-web@gmail.com\r"; exp_continue }
|
|
"Password" { send "123123\r"; exp_continue }
|
|
"Retype password" { send "123123\r" }
|
|
}
|
|
expect eof
|
|
EOF
|
|
|