[pkg-bacula-commits] [bacula] 01/05: create a link to the dbconfig information that is dbtype independent, i.e. /usr/share/bacula-common/dbc_database.conf points to /etc/dbconfig-common/bacula-director-$DBTYPE.conf

Carsten Leonhardt leo at moszumanska.debian.org
Sun Aug 28 22:15:28 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 8b279d67d31c331fae0636496f6b73b1701bda8b
Author: Carsten Leonhardt <leo at debian.org>
Date:   Mon Aug 22 18:52:18 2016 +0200

    create a link to the dbconfig information that is dbtype independent,
    i.e. /usr/share/bacula-common/dbc_database.conf points to
    /etc/dbconfig-common/bacula-director-$DBTYPE.conf
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 670b5d6..2c62153 100755
--- a/debian/rules
+++ b/debian/rules
@@ -118,9 +118,11 @@ override_dh_install-arch:
 		debian/bacula-director-$(db)/etc/bacula/scripts/make_catalog_backup \
 		debian/bacula-director-$(db)/etc/bacula/scripts/make_catalog_backup.pl;)
 # create a reference of which database type is installed on the system
+# and a link to the dbconfig information that is dbtype independent
 	$(foreach db,$(VARIANTS), \
 		mkdir -p debian/bacula-common-$(db)/usr/share/bacula-common; \
-		echo $(db) > debian/bacula-common-$(db)/usr/share/bacula-common/dbtype;)
+		echo $(db) > debian/bacula-common-$(db)/usr/share/bacula-common/dbtype; \
+		ln -s /etc/dbconfig-common/bacula-director-$(db).conf debian/bacula-common-$(db)/usr/share/bacula-common/dbc_database.conf;)
 ifeq ($(HAVE_SYSTEMD),1)
 	# only install systemd related files if systemd is enabled during build
 	install -m 644 platforms/systemd/bacula.conf -D debian/bacula-common/usr/lib/tmpfiles.d/bacula.conf

-- 
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