deb-cinder/debian/cinder-common.postrm
Thomas Goirand 2de43676b0 * Align with MOS packaging:
- Bumped EPOCH to 2 instead of 1.
    - Some Ubuntu version lower bounds for dependencies.
    - Added a cinder-doc package.
2015-09-01 15:50:44 +02:00

33 lines
853 B
Bash

#!/bin/sh
set -e
if [ "$1" = "purge" ] && [ -f /usr/share/debconf/confmodule ] ; then
if [ -f /usr/share/debconf/confmodule ] ; then
. /usr/share/debconf/confmodule
db_get cinder/configure_db || true
if [ "$RET" = "true" ]; then
if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
. /usr/share/dbconfig-common/dpkg/postrm
dbc_go cinder-common $@
else
rm -f /etc/dbconfig-common/cinder-common.conf
if which ucf >/dev/null 2>&1; then
ucf --purge /etc/dbconfig-common/cinder-common.conf
ucfr --purge cinder-common /etc/dbconfig-common/cinder-common.conf
fi
fi
fi
fi
rm -f /etc/cinder/cinder.conf /etc/cinder/api-paste.ini /etc/cinder/logging.conf
rmdir --ignore-fail-on-non-empty /etc/cinder || true
rm -f /etc/default/cinder-common
rm -rf /var/lib/cinder /var/log/cinder
fi
#DEBHELPER#
exit 0