Update mw.tpl

pull/624/head
Mr Chen 7 months ago
parent 96a0ca9b2f
commit 2c3746c596
  1. 5
      scripts/init.d/mw.tpl

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

Loading…
Cancel
Save