X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=trusty%2Fdebian%2Fceilometer-agent-notification.postrm;h=850a970c1e2cb92719efe1a155bd16e8d5e67f77;hb=378bac3ef6a5faf59b1722d186df3db8c01c13d3;hp=ff2550a1e9f84d89e48b558429c9d7d570a92d7c;hpb=981587dac7b7711ee52a4fc6b8589ad23db4c59b;p=openstack-build%2Fceilometer-build.git diff --git a/trusty/debian/ceilometer-agent-notification.postrm b/trusty/debian/ceilometer-agent-notification.postrm index ff2550a..850a970 100644 --- a/trusty/debian/ceilometer-agent-notification.postrm +++ b/trusty/debian/ceilometer-agent-notification.postrm @@ -1,7 +1,12 @@ -#!/bin/sh -e +#!/bin/sh -if [ "$1" = purge ]; then - update-rc.d ceilometer-agent-notification remove +set -e + +if [ "${1}" = purge ] ; then + rm -f /var/log/ceilometer/ceilometer-agent-notification.log* + [ -d /var/log/ceilometer ] && rmdir --ignore-fail-on-non-empty /var/log/ceilometer fi #DEBHELPER# + +exit 0