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 : 104.21.89.46

your ip : 172.71.1.179

H O M E


Filename/var/lib/dpkg/info/apt-xapian-index.postinst
Size1.4 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:53
Last modified23-Feb-2014 22:30
Last accessed06-Jul-2025 21:52
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh -e


# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
pycompile -p apt-xapian-index
fi

if which pycompile >/dev/null 2>&1; then
pycompile -p apt-xapian-index /usr/share/apt-xapian-index -V 2.4-
fi

# End automatically added section


# ionice should not be called in a virtual environment
# (similar to man-db cronjobs)
if [ -x /usr/bin/ionice ] && ! egrep -q '(envID|VxID):.*[1-9]' /proc/self/status
then
IONICE="/usr/bin/ionice -c3"
else
IONICE=""
fi

case "$1" in
configure)
# Just checking the main directory with -d should prevent the indexing
# to be started while an indexing is already going on, as the first
# thing that update-apt-xapian-index does is to create the directory if
# it is missing
#
# we also full-regenerate the index on upgrades from older versions
# because the weekly --update cron job will not use new plugins for
# already indexed packages
if [ ! -d /var/lib/apt-xapian-index ] || dpkg --compare-versions "$2" lt-nl "0.39"
then
if [ ! -x /usr/sbin/policy-rc.d ] || /usr/sbin/policy-rc.d apt-xapian-index start
then
echo "apt-xapian-index: Building new index in background..."
$IONICE nice /usr/sbin/update-apt-xapian-index --force --quiet &
fi
fi
;;
esac

exit 0