Do not rm -rf /etc/glance on purge (Closes: #867468).
Thomas Goirand
6 years ago
|
0 |
glance (2:15.0.0-2) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
* Do not rm -rf /etc/glance on purge (Closes: #867468).
|
|
3 |
|
|
4 |
-- Thomas Goirand <zigo@debian.org> Tue, 31 Oct 2017 10:02:06 +0000
|
|
5 |
|
0 | 6 |
glance (2:15.0.0-1) experimental; urgency=medium
|
1 | 7 |
|
2 | 8 |
[ Daniel Baumann ]
|
4 | 4 |
if [ "${1}" = "purge" ] ; then
|
5 | 5 |
[ -e /var/lib/glance ] && rm -rf /var/lib/glance
|
6 | 6 |
[ -e /var/log/glance ] && rm -rf /var/log/glance
|
7 | |
[ -e /etc/glance ] && rm -rf /etc/glance
|
|
7 |
for i in glance-api.conf glance-registry.conf glance-cache.conf \
|
|
8 |
glance-manage.conf glance-scrubber.conf glance-api-paste.ini \
|
|
9 |
glance-registry-paste.ini policy.json schema-image.json \
|
|
10 |
property-protections-policies.conf property-protections-roles.conf \
|
|
11 |
ovf-metadata.json rootwrap.conf glance-swift.conf ; do
|
|
12 |
if [ -e "/etc/glance/${i}" ] ; then
|
|
13 |
rm /etc/glance/${i}
|
|
14 |
fi
|
|
15 |
done
|
|
16 |
rmdir --ignore-fail-on-non-empty /etc/glance || true
|
8 | 17 |
fi
|
9 | 18 |
|
10 | 19 |
#DEBHELPER#
|