mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 10:46:41 +00:00
uhttpd: restart daemon if certificate has changed
Fixes #16075 When the SSL certificate used by uhttpd has been changed, calling `/etc/init.d/uhttpd reload` will now have the effect of restarting the daemon to make the change effective. Signed-off-by: Sylvain Monné <sylvain@monne.contact> Link: https://github.com/openwrt/openwrt/pull/16076 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
7abc89dabe
commit
88186c85f9
@ -204,6 +204,9 @@ start_instance()
|
|||||||
append_arg "$cfg" cert "-C"
|
append_arg "$cfg" cert "-C"
|
||||||
append_arg "$cfg" key "-K"
|
append_arg "$cfg" key "-K"
|
||||||
|
|
||||||
|
procd_append_param file "$UHTTPD_CERT"
|
||||||
|
procd_append_param file "$UHTTPD_KEY"
|
||||||
|
|
||||||
for listen in $https; do
|
for listen in $https; do
|
||||||
procd_append_param command -s "$listen"
|
procd_append_param command -s "$listen"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user