update 2022-06-16 20:20:35

This commit is contained in:
github-actions[bot]
2022-06-16 20:20:35 +08:00
parent 156dd06b65
commit 65287b7882

View File

@@ -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