mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-08 07:37:13 +08:00
update 2022-06-16 20:20:35
This commit is contained in:
@@ -27,18 +27,16 @@ sed -i '/profile.d/d' /lib/upgrade/keep.d/base-files
|
||||
echo $(uci -q get uhttpd.main.index_page) | grep -q "cgi-bin/luci" ||
|
||||
uci -q add_list uhttpd.main.index_page='cgi-bin/luci' && uci commit uhttpd
|
||||
|
||||
grep -q "return 301" /etc/nginx/conf.d/luci.locations || {
|
||||
|
||||
[ -f /etc/nginx/conf.d/luci.locations ] && ! grep -q "return 301" /etc/nginx/conf.d/luci.locations && {
|
||||
echo '
|
||||
location ~* ^/cgi-bin/(.*) {
|
||||
return 307 $scheme://$http_host/$1$is_args$args;
|
||||
}
|
||||
|
||||
location = / {
|
||||
return 301 $scheme://$http_host/luci/;
|
||||
}
|
||||
' >>/etc/nginx/conf.d/luci.locations
|
||||
}
|
||||
[ -f /etc/dnsmasq.d ] || sed -i "/\/etc\/dnsmasq.d/d" /etc/dnsmasq.conf
|
||||
|
||||
/etc/init.d/wizard disable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user