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 #!/bin/sh
rm -rf /var/luci-modulecache/; rm -f /var/luci-indexcache; rm -rf /var/luci-modulecache/;
exit 0 exit 0

View file

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

View file

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

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache/ rm -rf /tmp/luci-modulecache/
/etc/init.d/uhttpd restart /etc/init.d/uhttpd restart
/etc/init.d/rpcd reload /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 commit ucitrack
EOF EOF
rm -f /tmp/luci-indexcache
return 0 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 commit dynapoint
EOF EOF
rm -f /tmp/luci-indexcache
exit 0 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 set fwknopd.@config[0].ENABLE_NAT_DNS='y'
uci commit fwknopd uci commit fwknopd
rm -f /tmp/luci-indexcache
exit 0 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 #!/bin/sh
rm -rf /var/luci-modulecache/; rm -f /var/luci-indexcache; rm -rf /var/luci-modulecache/
exit 0 exit 0

View file

@ -6,5 +6,4 @@ uci -q batch <<-EOF >/dev/null
commit ucitrack commit ucitrack
EOF EOF
rm -f /tmp/luci-indexcache
exit 0 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 uci commit mwan3
} }
# remove LuCI cache
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
exit 0 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 EOF
fi fi
rm -f /tmp/luci-indexcache
exit 0 exit 0

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
rm -f /tmp/luci-indexcache
mkdir -p /etc/shadowsocks-libev mkdir -p /etc/shadowsocks-libev
/etc/init.d/rpcd reload /etc/init.d/rpcd reload
exit 0 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 commit ucitrack
EOF EOF
rm -f /tmp/luci-indexcache
exit 0 exit 0

View file

@ -12,5 +12,4 @@ EOF
[ -x /usr/sbin/httpd ] && [ ! -h /www/rrdimg ] && \ [ -x /usr/sbin/httpd ] && [ ! -h /www/rrdimg ] && \
ln -s /tmp/rrdimg /www/rrdimg ln -s /tmp/rrdimg /www/rrdimg
rm -f /tmp/luci-indexcache
exit 0 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 commit ucitrack
EOF EOF
rm -f /tmp/luci-indexcache
exit 0 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 #!/bin/sh
rm -rf /var/luci-modulecache/; rm -f /var/luci-indexcache; rm -rf /var/luci-modulecache/;
exit 0 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 commit ucitrack
EOF EOF
rm -f /tmp/luci-indexcache
exit 0 exit 0

View file

@ -229,6 +229,13 @@ define Package/$(PKG_NAME)/postinst
exit 0 exit 0
} }
endef endef
else
define Package/$(PKG_NAME)/postinst
[ -n "$${IPKG_INSTROOT}" ] || {
rm -f /tmp/luci-indexcache
exit 0
}
endef
endif endif