X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostrm;h=cbf0f4c3d2409c39f0f82aaaacb9b4adfcd8b8d3;hb=cf9a7f4aea28f97df202f25f1ba10b0d52412170;hp=961ffe72aad02326dca119ed26fd22e776c63d64;hpb=d9a6ac164d82f634d18097e23a0d1fda49104d05;p=monit-cn.git diff --git a/debian/postrm b/debian/postrm index 961ffe7..cbf0f4c 100755 --- a/debian/postrm +++ b/debian/postrm @@ -22,15 +22,22 @@ case "$1" in # continue below ;; - *) + remove) + # kludge + rm -f /usr/share/monit-cn/bacula-fd.conf.cn-old exit 0 ;; + + *) + exit 0 + ;; esac -# Brisemo /etc/monit, ali samo ako paket MONIT nije vise instaliran +# Brisemo /etc/monit i /usr/share/monit-cn, ali samo ako paket MONIT nije vise instaliran if [ $(dpkg-query -W -f='${Status}' monit 2> /dev/null | grep -c "ok installed" || true) -ne "0" ]; then - rm -fr /etc/monit + echo "Brisem /etc/monit i /usr/share/monit-cn..." + rm -fr /etc/monit /usr/share/monit-cn fi # dh_installdeb will replace this with shell code automatically