X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=php5-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=196c904337cddf8011327f384e1b0f34f52b62f8;hp=3e3d9c4026e10c6b5bf60aeeafa0ab0b74f6d2fe;hb=b6fae24fa516d341fce82b9fd04b7b82172677a6;hpb=4f801db34098e1c5fc78882dbeaf2a5d335a0308 diff --git a/debian/postinst b/debian/postinst index 3e3d9c4..196c904 100755 --- a/debian/postinst +++ b/debian/postinst @@ -167,14 +167,14 @@ done if [ $need_restart -eq 1 ]; then # Check Apache2 web server configuration. - if apache2ctl configtest 2>/dev/null; then + if /usr/sbin/apache2ctl configtest 2>/dev/null; then # Restart Apache2 web server. if [ -x "/etc/init.d/apache2" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then - invoke-rc.d apache2 restart || exit $? + invoke-rc.d apache2 force-reload || true else - /etc/init.d/apache2 restart || exit $? + /etc/init.d/apache2 force-reload || true fi fi else