From 484dc13977765a48acee6206ca587b8582f06fb8 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 15 Dec 2024 03:40:59 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index a5b4e24c4..242fae1b3 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -431,6 +431,10 @@ mw_connect_mysql(){ echo "login to ${CHOICE_DB}:" pwd=$(cd ${ROOT_PATH}/mdserver-web && python3 ${ROOT_PATH}/mdserver-web/plugins/${CHOICE_DB}/index.py root_pwd) + if [ "$pwd" == "admin" ];then + pwd="" + fi + if [ "$CHOICE_DB" == "mysql" ];then ${ROOT_PATH}/mysql/bin/mysql -uroot -p"${pwd}" fi