2004-09-08 11:57:49 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
# postinst script for linkchecker
|
|
|
|
|
#
|
|
|
|
|
# see: dh_installdeb(1)
|
|
|
|
|
|
|
|
|
|
case "$1" in
|
2005-10-13 22:34:20 +00:00
|
|
|
configure|reconfigure|abort-upgrade|abort-remove|abort-deconfigure)
|
2004-09-08 11:57:49 +00:00
|
|
|
;;
|
2005-10-13 22:34:20 +00:00
|
|
|
*)
|
|
|
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
|
|
|
exit 1
|
2004-09-08 11:57:49 +00:00
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
2011-05-20 19:10:31 +00:00
|
|
|
# move old system conffile
|
2004-09-08 11:57:49 +00:00
|
|
|
if [ -f /etc/linkcheckerrc ]; then
|
|
|
|
|
mv -f /etc/linkcheckerrc /etc/linkchecker/linkcheckerrc.old || true
|
|
|
|
|
fi
|
2011-05-20 19:10:31 +00:00
|
|
|
# remove system conffile for versions >= 7.0
|
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/linkchecker/linkcheckerrc 6.9 -- "$@"
|
|
|
|
|
|
2004-09-08 11:57:49 +00:00
|
|
|
|
|
|
|
|
#DEBHELPER#
|
|
|
|
|
|
2011-03-12 07:59:01 +00:00
|
|
|
# reload apache configuration
|
|
|
|
|
if [ "$1" = "configure" -a -x /etc/init.d/apache2 ]; then
|
2011-05-01 06:24:24 +00:00
|
|
|
if [ -x /usr/sbin/invoke-rc.d ]; then
|
|
|
|
|
/usr/sbin/invoke-rc.d apache2 reload
|
|
|
|
|
else
|
|
|
|
|
/etc/init.d/apache2 reload
|
|
|
|
|
fi
|
2011-03-12 07:59:01 +00:00
|
|
|
fi
|
|
|
|
|
|
2004-09-08 11:57:49 +00:00
|
|
|
exit 0
|