X-Git-Url: http://git.maemo.org/git/?p=vicar;a=blobdiff_plain;f=qtc_packaging%2Fdebian_fremantle%2Fpostrm;fp=qtc_packaging%2Fdebian_fremantle%2Fpostrm;h=5e17b2b8b4d1170695b85bba9023c138ba970e8f;hp=0000000000000000000000000000000000000000;hb=74800375ecf7f41e290cf7cc7fa9ee8b230be68e;hpb=89f0017e6a73945ea83247472a6fa07d6ee536b5 diff --git a/qtc_packaging/debian_fremantle/postrm b/qtc_packaging/debian_fremantle/postrm new file mode 100755 index 0000000..5e17b2b --- /dev/null +++ b/qtc_packaging/debian_fremantle/postrm @@ -0,0 +1,47 @@ +#!/bin/sh +# postrm script for vicar +# +# 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' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + echo "Removing logs ..." + [[ -d /var/log/vicar ]] && rm -rf /var/log/vicar + ;; + + remove|abort-install) + ;; + + upgrade|failed-upgrade|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + +