luci.mk: move /tmp/luci-modulecache remove to package postinst script

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2020-02-14 09:12:31 +01:00
parent 1f8a3c0417
commit b9292a6f57
5 changed files with 2 additions and 11 deletions

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -rf /var/luci-modulecache/;
exit 0

View File

@ -1,6 +1,5 @@
#!/bin/sh
rm -rf /tmp/luci-modulecache/
/etc/init.d/uhttpd restart
/etc/init.d/rpcd reload

View File

@ -1,3 +0,0 @@
#!/bin/sh
rm -rf /var/luci-modulecache/
exit 0

View File

@ -1,3 +0,0 @@
#!/bin/sh
rm -rf /var/luci-modulecache/;
exit 0

View File

@ -226,6 +226,7 @@ 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/
exit 0
}
endef
@ -233,6 +234,7 @@ else
define Package/$(PKG_NAME)/postinst
[ -n "$${IPKG_INSTROOT}" ] || {
rm -f /tmp/luci-indexcache
rm -rf /tmp/luci-modulecache/
exit 0
}
endef