projects
/
openwrt
/
staging
/
blocktrron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7abc89d
)
uhttpd: restart daemon if certificate has changed
author
Sylvain Monné
<
[email protected]
>
Mon, 5 Aug 2024 13:40:12 +0000
(15:40 +0200)
committer
Robert Marko
<
[email protected]
>
Mon, 19 Aug 2024 16:46:08 +0000
(18:46 +0200)
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é <
[email protected]
>
Link:
https://github.com/openwrt/openwrt/pull/16076
Signed-off-by: Robert Marko <
[email protected]
>
package/network/services/uhttpd/files/uhttpd.init
patch
|
blob
|
history
diff --git
a/package/network/services/uhttpd/files/uhttpd.init
b/package/network/services/uhttpd/files/uhttpd.init
index 6929fef421d483b536046eb636a4a5ac6ee13076..c6e0b210c5a8ba770fcc7ff4b0ac686c980a447e 100755
(executable)
--- a/
package/network/services/uhttpd/files/uhttpd.init
+++ b/
package/network/services/uhttpd/files/uhttpd.init
@@
-204,6
+204,9
@@
start_instance()
append_arg "$cfg" cert "-C"
append_arg "$cfg" key "-K"
+ procd_append_param file "$UHTTPD_CERT"
+ procd_append_param file "$UHTTPD_KEY"
+
for listen in $https; do
procd_append_param command -s "$listen"
done