From d6b9dc904f081119f9539d399daa605dbbdfd244 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 31 Mar 2012 14:14:14 +0200 Subject: [PATCH] Do not fail on Apache2 configuration errors in postinst. --- debian/linkchecker.postinst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/debian/linkchecker.postinst b/debian/linkchecker.postinst index 4a1e775b..901fd8c7 100755 --- a/debian/linkchecker.postinst +++ b/debian/linkchecker.postinst @@ -30,11 +30,7 @@ dpkg-maintscript-helper rm_conffile /etc/linkchecker/logging.conf 7.3 -- "$@" # reload apache configuration if [ "$1" = "configure" -a -x /etc/init.d/apache2 ]; then - if [ -x /usr/sbin/invoke-rc.d ]; then - /usr/sbin/invoke-rc.d apache2 reload - else - /etc/init.d/apache2 reload - fi + /usr/sbin/invoke-rc.d apache2 reload || true fi exit 0