diff options
Diffstat (limited to 'net/nginx/files-luci-support')
-rw-r--r-- | net/nginx/files-luci-support/60_nginx-luci-support | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/nginx/files-luci-support/60_nginx-luci-support b/net/nginx/files-luci-support/60_nginx-luci-support index b1fe35824..b2564444c 100644 --- a/net/nginx/files-luci-support/60_nginx-luci-support +++ b/net/nginx/files-luci-support/60_nginx-luci-support @@ -6,13 +6,16 @@ if nginx -V 2>&1 | grep -q ubus; then 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 |