Signed-off-by: Daniel Golle <daniel@makrotopia.org>
PKG_NAME:=nginx
PKG_VERSION:=1.19.2
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://nginx.org/download/
location /ubus {
ubus_interpreter;
- ubus_socket_path /var/run/ubus.sock;
+ ubus_socket_path /var/run/ubus/ubus.sock;
ubus_parallel_req 2;
}
EOT
fi
fi
+grep -q /var/run/ubus.sock /etc/nginx/conf.d/luci.locations &&
+ sed -i 's#/var/run/ubus.sock#/var/run/ubus/ubus.sock#' /etc/nginx/conf.d/luci.locations
+
if [ -x /etc/init.d/uhttpd ]; then
/etc/init.d/uhttpd disable
if [ -n "$(pgrep uhttpd)" ]; then