From 4eeb5915498edccb3dc418137b304f4cf237323f Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Tue, 16 Jun 2026 03:48:38 +0800 Subject: [PATCH] Update luci-app-nekobox.patch --- .github/diy/patches/luci-app-nekobox.patch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/diy/patches/luci-app-nekobox.patch b/.github/diy/patches/luci-app-nekobox.patch index 5354914b..a9b0d7f5 100644 --- a/.github/diy/patches/luci-app-nekobox.patch +++ b/.github/diy/patches/luci-app-nekobox.patch @@ -62,13 +62,12 @@ --- a/luci-theme-spectra/root/etc/uci-defaults/30_luci-theme-spectra +++ b/luci-theme-spectra/root/etc/uci-defaults/30_luci-theme-spectra -@@ -8,6 +8,34 @@ commit luci +@@ -8,6 +8,32 @@ commit luci EOF rm -rf /tmp/luci-* - /etc/init.d/uhttpd restart + if [ -n "$(command -v nginx)" ];then -+ if [ ! -f /etc/nginx/conf.d/spectra.locations ]; then +cat << 'EOF' > /etc/nginx/conf.d/spectra.locations +location /spectra/ { + index index.php index.html index.htm; @@ -84,7 +83,6 @@ +} +EOF + /etc/init.d/nginx restart -+ fi + elif [ -n "$(command -v lighttpd)" ];then +cat << 'EOF' > /etc/lighttpd/conf.d/81-php.conf +cgi.assign += ( ".php" => "/usr/bin/php-cgi" )