base-files: default_postinst() force clear luci-indexcache
authorJohn Crispin <john@openwrt.org>
Tue, 14 Oct 2014 19:01:30 +0000 (19:01 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 14 Oct 2014 19:01:30 +0000 (19:01 +0000)
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

package/base-files/files/lib/functions.sh

index b88d4d62175a785d5f0651ff127d2407ac09cb59..3a5a65dcc7ee1dc9d490d58bca517c6650d55ba7 100755 (executable)
@@ -216,6 +216,7 @@ default_postinst() {
                        $i start
                }
        done
+       [ -n "${IPKG_INSTROOT}" ] || rm -f /tmp/luci-indexcache 2>/dev/null
        return 0
 }