aboutsummaryrefslogtreecommitdiffstats
path: root/keystone-moon/debian/keystone.postrm
blob: 0c32667d64df8082a349c933dee202989dcac240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if [ "${1}" = "purge" ] ; then
	if [ -f /usr/share/debconf/confmodule ] && [ -f /usr/share/dbconfig-common/dpkg/postrm ] ; then
		. /usr/share/debconf/confmodule

		db_get keystone/configure_db
		if [ "$RET" = "true" ] ; then
			. /usr/share/dbconfig-common/dpkg/postrm
			dbc_go keystone $@
		fi
	fi
	rm -rf /var/log/keystone /var/lib/keystone /etc/keystone
fi

#DEBHELPER#