mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-02 09:18:05 +00:00
uhttpd: adapt defaults for changes ubus.sock path
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
de7ca7dafa
commit
061904d7e3
@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=uhttpd
|
PKG_NAME:=uhttpd
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/uhttpd.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/uhttpd.git
|
||||||
|
@ -5,4 +5,9 @@ if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then
|
|||||||
uci commit uhttpd
|
uci commit uhttpd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ "$(uci -q get uhttpd.main.ubus_socket)" = "/var/run/ubus.sock" ] && {
|
||||||
|
uci set uhttpd.main.ubus_socket='/var/run/ubus/ubus.sock'
|
||||||
|
uci commit uhttpd
|
||||||
|
}
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -59,7 +59,7 @@ config uhttpd main
|
|||||||
|
|
||||||
# Specify the ubus-rpc prefix and socket path.
|
# Specify the ubus-rpc prefix and socket path.
|
||||||
# option ubus_prefix /ubus
|
# option ubus_prefix /ubus
|
||||||
# option ubus_socket /var/run/ubus.sock
|
# option ubus_socket /var/run/ubus/ubus.sock
|
||||||
|
|
||||||
# CGI/Lua timeout, if the called script does not
|
# CGI/Lua timeout, if the called script does not
|
||||||
# write data within the given amount of seconds,
|
# write data within the given amount of seconds,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user