Skip to content

Commit e9fd3fa

Browse files
jjm2473hauke
authored andcommitted
base-files: fix default_postinst clearing luci cache
The path to the LuCI index cache file has changed to /tmp/luci-indexcache.*.json since OpenWrt 22.03. Update functions.sh to align with luci.mk. Signed-off-by: Liangbin Lian <[email protected]> Link: openwrt/openwrt#21280 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 9da57e2 commit e9fd3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ default_postinst() {
382382
uci commit
383383
fi
384384

385-
rm -f /tmp/luci-indexcache
385+
rm -f /tmp/luci-indexcache.*
386386
fi
387387

388388
if [ -f "$root/usr/lib/opkg/info/${pkgname}.postinst-pkg" ]; then

0 commit comments

Comments
 (0)