From 1f8a3c04178e21f45f3908fd476ec3b3dad73c69 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 13 Feb 2020 15:11:16 +0100 Subject: luci.mk: move /tmp/luci-indexcache remove to package postinst script Signed-off-by: Florian Eckert --- luci.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'luci.mk') diff --git a/luci.mk b/luci.mk index 5333fe11a1..fc02e84f7e 100644 --- a/luci.mk +++ b/luci.mk @@ -229,6 +229,13 @@ define Package/$(PKG_NAME)/postinst exit 0 } endef +else +define Package/$(PKG_NAME)/postinst +[ -n "$${IPKG_INSTROOT}" ] || { + rm -f /tmp/luci-indexcache + exit 0 +} +endef endif -- cgit v1.2.3