aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-10-14 19:01:30 +0000
committerJohn Crispin <john@openwrt.org>2014-10-14 19:01:30 +0000
commitd099a349806f2f6a4945c382ab8b7ed47228bac4 (patch)
treef7e17e16ea3cd8a319a0ce90b45149d6f4b10234 /package
parent6e46fc8a385acf7dae572f6b6ebfffffa0558288 (diff)
downloadupstream-d099a349806f2f6a4945c382ab8b7ed47228bac4.tar.gz
upstream-d099a349806f2f6a4945c382ab8b7ed47228bac4.tar.bz2
upstream-d099a349806f2f6a4945c382ab8b7ed47228bac4.zip
base-files: default_postinst() force clear luci-indexcache
Inside every LuCI package you need to clear luci-indexcache and sometimes when installing non LuCI pacakges it's also needed to clear it. Easier put it into default_postinst(). Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> SVN-Revision: 42923
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/lib/functions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index b88d4d6217..3a5a65dcc7 100755
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -216,6 +216,7 @@ default_postinst() {
$i start
}
done
+ [ -n "${IPKG_INSTROOT}" ] || rm -f /tmp/luci-indexcache 2>/dev/null
return 0
}