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>
Wed, 10 Jan 2024 16:06:56 +0000 (17:06 +0100)
commit1f11a4e28336c07aca61dd3b4fef01ef872a362d
tree415cc07a9adfa5f105b9ac91c3817bdd6dfba549
parente691e2b302d98d4239ffbfced0759384592ea995
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>
package/network/services/uhttpd/Makefile
package/network/services/uhttpd/files/ubus.default