From 9fd7d2005106707a0c9991bd332b874bfca96147 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 1 Nov 2024 17:16:47 +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 1d2ace922..c73cbf5cd 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -564,8 +564,8 @@ case "$1" in fi if [ "$address" == "" ];then - v4=$(python3 ${PANEL_DIR}/panel_tools.py getServerIp 4) - v6=$(python3 ${PANEL_DIR}/panel_tools.py getServerIp 6) + v4=$(cd ${PANEL_DIR} && python3 ${PANEL_DIR}/panel_tools.py getServerIp 4) + v6=$(cd ${PANEL_DIR} && python3 ${PANEL_DIR}/panel_tools.py getServerIp 6) if [ "$v4" != "" ] && [ "$v6" != "" ]; then