diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-10-22 15:44:01 +0100 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2020-10-29 21:02:18 +0200 |
commit | c8bfe55026efbf2b9b467a096493d07b1aa6e3b1 (patch) | |
tree | 80f50efe2eddebda2c50cf3c32fd71adf5362ca2 /net/nginx/files-luci-support | |
parent | 9d9669c2ffe4ebf1d9ed520c1f3deb3fcfc10120 (diff) |
nginx: adapt to changed ubus socket path
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
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 |