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

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2020-02-13 15:11:16 +01:00
parent effb720741
commit 1f8a3c0417
41 changed files with 11 additions and 102 deletions

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

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

View File

@ -7,5 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -14,5 +14,4 @@ if [ ."$(uci -q get aria2.main)" != ."aria2" ]; then
EOF
fi
rm -f /tmp/luci-indexcache
exit 0

View File

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

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,3 +0,0 @@
#!/bin/sh
exit 0

View File

@ -6,5 +6,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
return 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -8,6 +8,4 @@ uci -q batch <<-EOF >/dev/null
commit dynapoint
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -15,5 +15,4 @@ uci set fwknopd.@config[0].ENABLE_IPT_FORWARDING='y'
uci set fwknopd.@config[0].ENABLE_NAT_DNS='y'
uci commit fwknopd
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

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

View File

@ -6,5 +6,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -15,7 +15,4 @@ uci -q get mwan3.globals >/dev/null || {
uci commit mwan3
}
# remove LuCI cache
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,7 +0,0 @@
#!/bin/sh
# Copyright (C) 2017 Steven Hessing (steven.hessing@live.com)
# This is free software, licensed under the GNU General Public License v3
rm -f /tmp/luci-indexcache
exit 0

View File

@ -18,5 +18,4 @@ if [ "$version" = "2.7.4" ] && [ "$release" -lt 8 ]; then
EOF
fi
rm -f /tmp/luci-indexcache
exit 0

View File

@ -10,5 +10,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -7,5 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -7,5 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -7,6 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -7,6 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,6 +1,5 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
mkdir -p /etc/shadowsocks-libev
/etc/init.d/rpcd reload
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -4,5 +4,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -12,5 +12,4 @@ EOF
[ -x /usr/sbin/httpd ] && [ ! -h /www/rrdimg ] && \
ln -s /tmp/rrdimg /www/rrdimg
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -7,5 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

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

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -f /tmp/luci-indexcache
exit 0

View File

@ -7,5 +7,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0

View File

@ -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