Use invoke-rc.d interface in postinst maintainer script

Make sure we don't invoke services if that's unwanted.
mr3.2.1
Michael Prokop 12 years ago
parent a165521a1c
commit abe9de69a2
Notes: Sipwise Jenkins Builder 11 years ago
jenkins_trigger: false

@ -28,7 +28,11 @@ fi
# reload perl and/or apache modules # reload perl and/or apache modules
if [ -x /etc/init.d/apache2 ]; then if [ -x /etc/init.d/apache2 ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d apache2 restart || true
else
/etc/init.d/apache2 restart || true /etc/init.d/apache2 restart || true
fi fi
fi
exit 0 exit 0

Loading…
Cancel
Save