[DRE-commits] [gitlab] 21/23: remove debconf questions on purge

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Jun 3 12:52:42 UTC 2016


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository gitlab.

commit 9da14d2ba5c55de3c6f3fb2f77939b1deaf25df1
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Jun 3 15:38:06 2016 +0530

    remove debconf questions on purge
---
 debian/changelog | 1 +
 debian/postrm    | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9f1fe74..531f0df 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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 at debian.org>  Thu, 02 Jun 2016 22:27:15 +0530
 
diff --git a/debian/postrm b/debian/postrm
index aa2784b..4950efc 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -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
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git



More information about the Pkg-ruby-extras-commits mailing list