From 1f84f268cc647d3469864fd9b04b97d4cd2f984c Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 10 Dec 2019 13:28:13 +0100 Subject: [PATCH] luci.mk: move indexcache delete into postinst Almost every uci-defaults script for ucitrack execute after the uci commands the following line '/tmp/luci-indexcache'. So that we don't always write the same thing, we now do this in postinst. Signed-off-by: Florian Eckert --- luci.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/luci.mk b/luci.mk index d8fa02951..e6c48ccc6 100644 --- a/luci.mk +++ b/luci.mk @@ -218,6 +218,7 @@ 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 exit 0 } endef -- 2.25.1