From 669bbfce937a12aa42eb9bbdbd5323306c144d90 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 1 Nov 2024 18:34:35 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index cfea01021..97e9c83e5 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -527,8 +527,8 @@ mw_default(){ address=$(cat ${PANEL_DIR}/data/domain.conf) fi - admin_path=$(python3 ${PANEL_DIR}/panel_tools.py admin_path) - + admin_path=$(cd ${PANEL_DIR} && python3 ${PANEL_DIR}/panel_tools.py admin_path) + if [ "$address" == "" ];then v4=$(python3 ${PANEL_DIR}/panel_tools.py getServerIp 4) v6=$(python3 ${PANEL_DIR}/panel_tools.py getServerIp 6)