X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=php-suhosin-cn.git;a=blobdiff_plain;f=debian%2Fpostrm;fp=debian%2Fpostrm;h=96cbcd327927604f6c88b52fe1046643a7a84384;hp=0000000000000000000000000000000000000000;hb=120f64e939c7b1f89ff8f0e12a25cdaf67463497;hpb=d7bbc770feda808c0f3fcd04e4c57f4508e6a5dd diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 0000000..96cbcd3 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,52 @@ +#!/bin/sh +# postrm script for monit-cn +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + purge) + # continue below + ;; + + *) + exit 0 + ;; +esac + +# import CN-functions +. /usr/share/carnet-tools/functions.sh + +CONF=/etc/php5/conf.d/suhosin.ini + +# remove us from inittab +echo "CN: Removing Suhosin tuneups" +cp-update --comment ';' -r php-suhosin-cn "$CONF" + +# reload Apache +if apache2ctl configtest 2>/dev/null; then + echo "CN: Reloading Apache..." + invoke-rc.d apache2 force-reload || true +else + echo "CN: Your Apache2 configuration is either broken or nonexistant" +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0