Преглед изворни кода

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 <[email protected]>

SVN-Revision: 42923
John Crispin пре 11 година
родитељ
комит
d099a34980
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      package/base-files/files/lib/functions.sh

+ 1 - 0
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
 }