summaryrefslogtreecommitdiffstats
path: root/scripts/postinst-intercepts/update_font_cache
blob: 900db042d64e1b673bf6df9e590f823a3fe56144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# SPDX-License-Identifier: MIT
#

set -e

rm -f $D${fontconfigcachedir}/CACHEDIR.TAG

PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D -E ${fontconfigcacheenv} $D${libexecdir}/${binprefix}fc-cache --sysroot=$D --system-only ${fontconfigcacheparams}

chown -R root:root $D${fontconfigcachedir}
find $D -type f -name .uuid -exec chown root:root '{}' +