mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
uhttpd: don't process ubus_* and lua_* options if corresponding plugin is not installed (#14618)
SVN-Revision: 39057
This commit is contained in:
parent
94f3a19a21
commit
e444eb0bbd
@ -67,10 +67,14 @@ start_instance()
|
||||
append_arg "$cfg" realm "-r" "${realm:-OpenWrt}"
|
||||
append_arg "$cfg" config "-c"
|
||||
append_arg "$cfg" cgi_prefix "-x"
|
||||
[ -f /usr/lib/uhttpd_lua.so ] && {
|
||||
append_arg "$cfg" lua_prefix "-l"
|
||||
append_arg "$cfg" lua_handler "-L"
|
||||
}
|
||||
[ -f /usr/lib/uhttpd_ubus.so ] && {
|
||||
append_arg "$cfg" ubus_prefix "-u"
|
||||
append_arg "$cfg" ubus_socket "-U"
|
||||
}
|
||||
append_arg "$cfg" script_timeout "-t"
|
||||
append_arg "$cfg" network_timeout "-T"
|
||||
append_arg "$cfg" http_keepalive "-k"
|
||||
|
Loading…
Reference in New Issue
Block a user