[pkg-bacula-commits] [bacula] 01/01: bacula-director-DBTYPE: let dbconfig create a sourceable shell script with database information
Carsten Leonhardt
leo at moszumanska.debian.org
Thu Aug 4 20:34:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
leo pushed a commit to branch migrate-files
in repository bacula.
commit 105d7920c5eba55c19eeb24ff6d320cc2eba0a28
Author: Carsten Leonhardt <leo at debian.org>
Date: Thu Aug 4 22:33:04 2016 +0200
bacula-director-DBTYPE: let dbconfig create a sourceable shell script
with database information
This is for use in upcoming patches.
---
debian/bacula-director-db.postinst.in | 5 +++++
debian/bacula-director-db.postrm.in | 8 ++++++++
debian/changelog | 7 +++++++
3 files changed, 20 insertions(+)
diff --git a/debian/bacula-director-db.postinst.in b/debian/bacula-director-db.postinst.in
index ebd9581..3243512 100644
--- a/debian/bacula-director-db.postinst.in
+++ b/debian/bacula-director-db.postinst.in
@@ -40,6 +40,11 @@ case "$THISDB" in
;;
esac
+# generate a config file containing relevant database information
+dbc_generate_include=sh:/etc/bacula/dbc_database.conf
+dbc_generate_include_owner=bacula:bacula
+dbc_generate_include_perms=0640
+
if test "$1" = "configure" -a -n "$2"; then
invoke-rc.d bacula-director stop || true
fi
diff --git a/debian/bacula-director-db.postrm.in b/debian/bacula-director-db.postrm.in
index 8b9ed27..58a3539 100644
--- a/debian/bacula-director-db.postrm.in
+++ b/debian/bacula-director-db.postrm.in
@@ -44,6 +44,14 @@ case "$1" in
;;
esac
+# remove and unregister dbc_database.conf on purge
+if [ "$1" = "purge" ]; then
+ rm -f /etc/bacula/dbc_database.conf
+ if which ucf >/dev/null 2>&1; then
+ ucf --purge /etc/bacula/dbc_database.conf
+ ucfr --purge bacula-director-$THISDB /etc/bacula/dbc_database.conf
+ fi
+fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
diff --git a/debian/changelog b/debian/changelog
index 3a07b17..96e892e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+bacula (7.4.3+dfsg-4) experimental; urgency=medium
+
+ * bacula-director-DBTYPE: let dbconfig create a sourceable shell script
+ with database information
+
+ --
+
bacula (7.4.3+dfsg-3) experimental; urgency=medium
Reorganisation of packages, providing the necessary Breaks/Conflicts for
--
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