summaryrefslogtreecommitdiffstats
path: root/scripts/postinst-intercepts/update_mandb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/postinst-intercepts/update_mandb')
-rw-r--r--scripts/postinst-intercepts/update_mandb18
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/postinst-intercepts/update_mandb b/scripts/postinst-intercepts/update_mandb
deleted file mode 100644
index f91bafdb11..0000000000
--- a/scripts/postinst-intercepts/update_mandb
+++ /dev/null
@@ -1,18 +0,0 @@
1#!/bin/sh
2#
3# SPDX-License-Identifier: MIT
4#
5
6set -eu
7
8# Create a temporary man_db.conf with paths to the rootfs, as mandb needs absolute paths
9CONFIG=$(mktemp --tmpdir update-mandb.XXXXX)
10sed "s:\(\s\)/:\1$D/:g" $D${sysconfdir}/man_db.conf > $CONFIG
11
12mkdir -p $D${localstatedir}/cache/man/
13
14PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${bindir}/mandb --config-file $CONFIG --create
15
16rm -f $CONFIG
17
18chown -R man:man $D${localstatedir}/cache/man/