mirror of
https://github.com/openwrt/luci
synced 2025-01-08 03:58:39 +08: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:
parent
1f8a3c0417
commit
b9292a6f57
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user