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