uhttpd: handle reload after uhttpd-mod-ubus installation using postinst
authorRafał Miłecki <rafal@milecki.pl>
Wed, 27 Dec 2023 15:20:45 +0000 (16:20 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Sat, 27 Jan 2024 09:36:43 +0000 (10:36 +0100)
commit1ca61b7b376e135f4a3e08c500e98563f66aa202
tree0f8f7567e88c835505b12b49d4d4e7ad71a1304d
parent6b7c4739c407588865aaa0d6868cf6bfe216a987
uhttpd: handle reload after uhttpd-mod-ubus installation using postinst

Use postinst script to reload service instead of uci-defaults hack. It's
possible thanks to recent base-files change that executes postinst after
uci-defaults.

This fixes support for uhttpd customizations. It's possible (again) to
adjust uhttpd config with custom uci-defaults before it gets started.

Cc: Hauke Mehrtens <hauke@hauke-m.de>
Fixes: d25d281fd668 ("uhttpd: Reload config after uhttpd-mod-ubus was added")
Ref: b799dd3c705d ("base-files: execute package's "postinst" after executing uci-defaults")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 1f11a4e28336c07aca61dd3b4fef01ef872a362d)
package/network/services/uhttpd/Makefile
package/network/services/uhttpd/files/ubus.default