[pkg-bacula-commits] [bacula] 01/02: moved deletion of /etc/bacula/bacula-dir.conf to purge of bacula-director-common (Closes: #755089)
Carsten Leonhardt
cl-guest at moszumanska.debian.org
Sun Jul 26 00:36:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
cl-guest pushed a commit to branch master
in repository bacula.
commit 3882b3a49338cf57b82f3af41b90241f3af2c824
Author: Carsten Leonhardt <leo at debian.org>
Date: Sun Jul 26 02:31:44 2015 +0200
moved deletion of /etc/bacula/bacula-dir.conf to purge of bacula-director-common
(Closes: #755089)
---
debian/bacula-director-common.postrm | 42 ++++++++++++++++++++++++++++++++++++
debian/bacula-director-db.postrm.in | 7 ++----
2 files changed, 44 insertions(+), 5 deletions(-)
diff --git a/debian/bacula-director-common.postrm b/debian/bacula-director-common.postrm
new file mode 100644
index 0000000..29a2f4d
--- /dev/null
+++ b/debian/bacula-director-common.postrm
@@ -0,0 +1,42 @@
+#!/bin/sh
+# postrm script for test
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+CONFFILE=/etc/bacula/bacula-dir.conf
+
+case "$1" in
+ purge)
+ rm -f $CONFFILE $CONFFILE.dist
+ ;;
+
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/bacula-director-db.postrm.in b/debian/bacula-director-db.postrm.in
index a51fab2..8b9ed27 100644
--- a/debian/bacula-director-db.postrm.in
+++ b/debian/bacula-director-db.postrm.in
@@ -19,10 +19,7 @@ fi
case "$1" in
- purge)
- rm -f $CONFFILE $CONFFILE.dist
-
-
+ purge)
UCF_CONFIG_FILES="/etc/default/bacula-dir \
/etc/bacula/scripts/delete_catalog_backup"
@@ -44,7 +41,7 @@ case "$1" in
ucfr --purge bacula-director-$THISDB "$CONF"
fi
done
- ;;
+ ;;
esac
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bacula/bacula.git
More information about the pkg-bacula-commits
mailing list