postinst is in quagga 0.99.24.1-2ubuntu1.4.
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 | #!/bin/bash -e
if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"}
if [ "$1" = "configure" ]; then
# Fix permissions for installed elements.
find /etc/quagga -type f -print0 | xargs -0 -I{} sh -c 'chown quagga:quagga {} ; chmod 640 {}'
find /var/log/quagga -type f -print0 | xargs -0 -I{} sh -c 'chown quagga:quagga {} ; chmod 640 {}'
find /var/run/quagga -type f -print0 | xargs -0 -I{} sh -c 'chown quagga:quagga {} ; chmod 600 {}'
fi
# This is most likely due to the answer "no" to the "really stop the server"
# question in the prerm script.
if [ "$1" = "abort-upgrade" ]; then
exit 0
fi
. /usr/share/debconf/confmodule
db_stop
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "/etc/init.d/quagga" ]; then
update-rc.d quagga defaults >/dev/null
fi
if [ -x "/etc/init.d/quagga" ] || [ -e "/etc/init/quagga.conf" ]; then
invoke-rc.d quagga start || exit $?
fi
fi
# End automatically added section
|