postinst is in pki-base 10.2.6+git20160317-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/sh
set -e
OLD_VERSION=`echo $2 | sed 's/-.*//'`
VERSION=`dpkg-query -W pki-base | sed 's/.*\t//;s/-.*//'`
if [ "$1" = configure ]; then
# we've forgot to create pki.version before, do it here
if dpkg --compare-versions "$2" lt "10.2.6"; then
echo "Configuration-Version: $OLD_VERSION" > /etc/pki/pki.version
fi
if [ ! -n "$2" ]; then
# On installation create system upgrade tracker
echo "Configuration-Version: $VERSION" > /etc/pki/pki.version
else
# On upgrade run system upgrade
echo "Upgrading system at `/bin/date`." >> /var/log/pki/pki-upgrade-$VERSION.log 2>&1
/usr/sbin/pki-upgrade --silent >> /var/log/pki/pki-upgrade-$VERSION.log 2>&1
echo >> /var/log/pki/pki-upgrade-$VERSION.log 2>&1
fi
fi
# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
pycompile -p pki-base
fi
# End automatically added section
|