K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / var / lib / dpkg / info /
server ip : 172.67.156.115

your ip : 108.162.241.220

H O M E


Filename/var/lib/dpkg/info/man-db.postinst
Size2.2 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:55
Last modified10-Apr-2014 18:59
Last accessed07-Jul-2025 03:09
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh
set -e

. /usr/share/debconf/confmodule
db_version 2.0

run_mandb () {
db_get man-db/auto-update
if [ "$RET" != true ]; then
echo "Not building database; man-db/auto-update is not 'true'." >&2
return 0
fi
local message="$1"
shift
[ "$message" ] && echo "$message" >&2
# start-stop-daemon isn't available when running from debootstrap.
perl -e '@pwd = getpwnam("man"); $( = $) = $pwd[3]; $< = $> = $pwd[2];
exec "/usr/bin/mandb", @ARGV' -- "$@" || true
}

if [ "$1" = triggered ]; then
# We don't print a status message here, as dpkg already said
# "Processing triggers for man-db ...".
run_mandb "" -pq
exit 0
fi

[ "$1" = configure ] || exit 0

oldcatdir=/var/catman
catdir=/var/cache/man
maybesetuid='man mandb'
conffile=/etc/manpath.config

db_get man-db/install-setuid

if [ "$RET" = true ]; then
# man and mandb are to be installed setuid man.
owner=man:root
mode=4755
else
# man and mandb are not to be installed setuid.
owner=root:root
mode=0755
fi

for x in $maybesetuid; do
# No statoverrides available or none exist for us ...
if [ ! -x /usr/sbin/dpkg-statoverride ] || \
! dpkg-statoverride --list /usr/bin/$x >/dev/null; then
chown $owner /usr/bin/$x || true
chmod $mode /usr/bin/$x
fi
done

if [ -e /etc/cron.daily/man.moved-by-preinst ]; then
rm /etc/cron.daily/man.moved-by-preinst
fi
if [ -e /etc/cron.weekly/catman.moved-by-preinst ]; then
rm /etc/cron.weekly/catman.moved-by-preinst
fi

if [ ! -d $catdir ]; then
# Make sure the cat directory exists.
install -d -o man -g root -m 02755 $catdir
fi

build_db=0

if [ ! -f $catdir/index.db ]; then
# Build the database from scratch on fresh installs.
build_db=1
fi

if [ $build_db -eq 1 ]; then
# Chances are we're being run from debootstrap, which will have problems
# if mandb runs backgrounded for too long (bug #100616).
run_mandb "Building database of manual pages ..." -cq
else
# Otherwise, just update the database in the foreground. It's unlikely
# to take very long, and configuration needs to cover everything that
# happens when we're triggered.
run_mandb "Updating database of manual pages ..." -pq
fi



exit 0