Fix bug where UUID was missing from nginx config path after changing port.

This commit is contained in:
fscarmen
2025-10-19 11:58:59 +08:00
committed by GitHub
parent d05a2fbe9c
commit 8ee7f904ff
+2 -2
View File
@@ -2900,7 +2900,7 @@ change_start_port() {
[ -s ${WORK_DIR}/conf/${CONF_FILES[a]} ] && sed -i "s/\(.*listen_port.*:\)$((OLD_START_PORT+a))/\1$((START_PORT+a))/" ${WORK_DIR}/conf/* [ -s ${WORK_DIR}/conf/${CONF_FILES[a]} ] && sed -i "s/\(.*listen_port.*:\)$((OLD_START_PORT+a))/\1$((START_PORT+a))/" ${WORK_DIR}/conf/*
done done
fetch_nodes_value fetch_nodes_value
[ -n "$PORT_NGINX" ] && export_nginx_conf_file [ -n "$PORT_NGINX" ] && UUID_CONFIRM=$(sed -n 's#.*location[ ]\+\/\(.*\)-v[ml]ess.*#\1#gp' /etc/sing-box/nginx.conf | sed -n '1p') && export_nginx_conf_file
cmd_systemctl enable sing-box cmd_systemctl enable sing-box
[ -n "$ARGO_DOMAIN" ] && export_argo_json_file [ -n "$ARGO_DOMAIN" ] && export_argo_json_file
sleep 2 sleep 2
@@ -3576,4 +3576,4 @@ if [ "$NONINTERACTIVE_INSTALL" = 'noninteractive_install' ]; then
else else
menu_setting menu_setting
menu menu
fi fi