remove debconf questions on purge

This commit is contained in:
Praveen Arimbrathodiyil 2016-06-03 15:38:06 +05:30
parent 26b727b949
commit 9da14d2ba5
2 changed files with 9 additions and 0 deletions

1
debian/changelog vendored
View file

@ -7,6 +7,7 @@ gitlab (8.8.2+dfsg-1) unstable; urgency=medium
* Check if nginx site configuration directory is present before copying
(Closes: #821085)
* Symlink /run/gitlab/cache to /var/lib/gitlab/cache (or /run gets filled up)
* Remove debconf db on purge
-- Pirate Praveen <praveen@debian.org> Thu, 02 Jun 2016 22:27:15 +0530

8
debian/postrm vendored
View file

@ -64,6 +64,14 @@ case "$1" in
test -n "${gitlab_yml}" && ucfr --purge gitlab ${gitlab_yml}
fi
# purge debconf questions
if [ -e /usr/share/debconf/confmodule ]; then
# Source debconf library.
. /usr/share/debconf/confmodule
# Remove my changes to the db.
db_purge
fi
# cleanup complete
exit 0