postinst is in klogd 1.5-6ubuntu1.
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 31 32 33 34 35 36 37 38 39 40 41 | #! /bin/sh
set -e
if [ "$1" = "configure" ]
then
case $2 in
1.4.1-18|1.4.1-19|1.4.1-20|1.4.1-21|1.5-1)
chmod 644 /etc/default/klogd
;;
esac
if [ -f /etc/init.d/klogd -a -n "$2" ]
then
set +e
sh /etc/init.d/klogd stop
sleep 1
set -e
fi
update-rc.d klogd start 11 2 3 4 5 . stop 89 1 . >/dev/null
adduser --system --quiet --group --no-create-home klog || true
# restarting daemon
#
if [ -f /etc/init.d/klogd ]
then
set +e
if [ -x /usr/sbin/invoke-rc.d ]
then
invoke-rc.d klogd start
else
sh /etc/init.d/klogd start
fi
set -e
fi
fi
exit 0
|