mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 07:55:13 +08:00
Update luci-app-nekobox.patch
This commit is contained in:
1 parent
7a5aff0b35
commit
b2eae6784b
1 file changed
+4
-2
@@ -24,13 +24,14 @@
|
||||
|
||||
--- a/luci-app-nekobox/root/etc/uci-defaults/99_neko
|
||||
+++ b/luci-app-nekobox/root/etc/uci-defaults/99_neko
|
||||
@@ -9,11 +9,33 @@ tmp_dir="/tmp"
|
||||
@@ -9,11 +9,34 @@ tmp_dir="/tmp"
|
||||
echo "[ `date +%T` ] - Checking Files..."
|
||||
|
||||
files_check() {
|
||||
+ if [ -n "$(command -v nginx)" ];then
|
||||
+cat << 'EOF' > /etc/nginx/conf.d/nekobox.locations
|
||||
+location /nekobox {
|
||||
+ index index.php index.html index.htm;
|
||||
+ location ~ \.php$ {
|
||||
+ if (!-f $request_filename) {
|
||||
+ return 404;
|
||||
@@ -61,7 +62,7 @@
|
||||
|
||||
--- 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,33 @@ commit luci
|
||||
@@ -8,6 +8,34 @@ commit luci
|
||||
EOF
|
||||
|
||||
rm -rf /tmp/luci-*
|
||||
@@ -70,6 +71,7 @@
|
||||
+ 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;
|
||||
+ location ~ \.php$ {
|
||||
+ if (!-f $request_filename) {
|
||||
+ return 404;
|
||||
|
||||
Reference in new issue
Block a user