linkchecker/debian/linkchecker.postinst
2011-03-12 08:59:01 +01:00

27 lines
521 B
Bash
Executable file

#!/bin/sh -e
# postinst script for linkchecker
#
# see: dh_installdeb(1)
case "$1" in
configure|reconfigure|abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# move old logfile
if [ -f /etc/linkcheckerrc ]; then
mv -f /etc/linkcheckerrc /etc/linkchecker/linkcheckerrc.old || true
fi
#DEBHELPER#
# reload apache configuration
if [ "$1" = "configure" -a -x /etc/init.d/apache2 ]; then
/etc/init.d/apache2 reload
fi
exit 0