From ba5c508ef35d8a1d55dc4deef84fe5daab1c65a7 Mon Sep 17 00:00:00 2001 From: tmxk2021 <90445826+tmxk2021@users.noreply.github.com> Date: Sat, 22 Feb 2025 18:02:52 +0800 Subject: [PATCH] Update openwrtlive.sh --- openwrtlive.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openwrtlive.sh b/openwrtlive.sh index f7f350f..4de8925 100644 --- a/openwrtlive.sh +++ b/openwrtlive.sh @@ -68,7 +68,7 @@ fi NGINX_CONF_URL="https://raw.githubusercontent.com/tmxk2021/CF-IPTV/refs/heads/main/nginx.conf" NGINX_CONF_PATH="/etc/nginx/nginx.conf" echo "下载并强制替换Nginx配置文件..." -curl -o "$NGINX_CONF_PATH" "$NGINX_CONF_URL" +sudo curl -o "$NGINX_CONF_PATH" "$NGINX_CONF_URL" # 配置Nginx监听80端口(避免重复添加) if ! grep -q "server_name $FEIYANG_IP;" "$NGINX_CONF_PATH"; then @@ -96,7 +96,7 @@ fi M3U_URL="https://raw.githubusercontent.com/tmxk2021/CF-IPTV/refs/heads/main/allinone.m3u" M3U_PATH="/www/allinone.m3u" echo "下载M3U文件..." -curl -o "$M3U_URL" "$M3U_PATH" +curl -o "$M3U_PATH" "$M3U_URL" echo "修改M3U文件中的设备IP..." sed -i "s/肥羊IP/$FEIYANG_IP/g" "$M3U_PATH"