mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
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:
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf /var/luci-modulecache/;
|
||||
exit 0
|
||||
@@ -1,6 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf /tmp/luci-modulecache/
|
||||
/etc/init.d/uhttpd restart
|
||||
/etc/init.d/rpcd reload
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
rm -rf /var/luci-modulecache/
|
||||
exit 0
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
rm -rf /var/luci-modulecache/;
|
||||
exit 0
|
||||
2
luci.mk
2
luci.mk
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user