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)
committerRISCi_ATOM <bob@bobcall.me>
Tue, 27 Feb 2024 16:23:27 +0000 (11:23 -0500)
commit5144e3aae3ac5979b6bd9fca657d59abdc6d67c0
tree22dc8fa04bc76bd5db7646dd3ce2801ac9faeb12
parentd77f4067500b5f6e8ef592b87a8e33b0e9790ac7
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