Update mw.tpl

This commit is contained in:
Mr Chen 2024-10-01 20:59:30 +08:00
parent 96a0ca9b2f
commit 2c3746c596
1 changed files with 3 additions and 2 deletions

View File

@ -437,8 +437,9 @@ mw_connect_pgdb(){
pwd=$(cd ${ROOT_PATH}/mdserver-web && python3 ${ROOT_PATH}/mdserver-web/plugins/postgresql/index.py root_pwd)
echo "${ROOT_PATH}/postgresql/bin/psql -U postgres -W "${pwd}""
${ROOT_PATH}/postgresql/bin/psql -U postgres -W
export PGPASSWORD=${pwd}
echo "${ROOT_PATH}/postgresql/bin/psql -U postgres -W"
echo "\n" | ${ROOT_PATH}/postgresql/bin/psql -U postgres -W
}