build: reload rpcd in package postinstall
Send a SIGHUP to rpcd after installing LuCI packages to reload ACL rules.
Also remove redundant code while we're at it.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit ca558f4f93
)
This commit is contained in:
parent
ecd49247eb
commit
3c441efa02
1 changed files with 3 additions and 0 deletions
3
luci.mk
3
luci.mk
|
@ -225,6 +225,9 @@ ifneq ($(LUCI_DEFAULTS),)
|
|||
define Package/$(PKG_NAME)/postinst
|
||||
[ -n "$${IPKG_INSTROOT}" ] || {$(foreach script,$(LUCI_DEFAULTS),
|
||||
(. /etc/uci-defaults/$(script)) && rm -f /etc/uci-defaults/$(script))
|
||||
rm -f /tmp/luci-indexcache
|
||||
rm -rf /tmp/luci-modulecache/
|
||||
killall -HUP rpcd 2>/dev/null
|
||||
exit 0
|
||||
}
|
||||
endef
|
||||
|
|
Loading…
Reference in a new issue