[pkg-bacula-commits] [SCM] Bacula, a network backup, recovery and verification program branch, master, updated. debian/5.2.6+dfsg-2-27-g74e9c2d

Bart Swedrowski bart at timedout.org
Mon Aug 6 09:58:20 UTC 2012


The following commit has been merged in the master branch:
commit a10ebee5afbd044d3266bb6d835520b9f8c93060
Author: Bart Swedrowski <bart at timedout.org>
Date:   Mon Aug 6 10:57:09 2012 +0100

    Fix hostname substitution

diff --git a/debian/bacula-console-qt.postinst b/debian/bacula-console-qt.postinst
index 240f6a4..c8c29f0 100644
--- a/debian/bacula-console-qt.postinst
+++ b/debian/bacula-console-qt.postinst
@@ -40,7 +40,7 @@ case "$1" in
 	fi
 
 	# bconsole & wx-console use the same config file ;)
-	sed -e "s~@debian_hostname@~localhost~" \
+	sed -e s~@debian_hostname@~`hostname`~ \
 	-e s~XXX_DIRPASSWORD_XXX~$DIRPASSWD~ \
 		< $SRCDIR/$CFGFILE > $TARGET
 
diff --git a/debian/bacula-traymonitor.postinst b/debian/bacula-traymonitor.postinst
index 3ccef7b..e363d9f 100644
--- a/debian/bacula-traymonitor.postinst
+++ b/debian/bacula-traymonitor.postinst
@@ -39,7 +39,7 @@ case "$1" in
             TARGET=$DSTDIR/$CONFIG.dist
         fi
 
-	sed -e "s~@debian_hostname@~localhost~" \
+	sed -e s~@debian_hostname@~`hostname`~ \
 	-e s~XXX_MONDIRPASSWORD_XXX~$DIRMPASSWD~ \
 	-e s~XXX_MONFDPASSWORD_XXX~$FDMPASSWD~ \
 	-e s~XXX_MONSDPASSWORD_XXX~$SDMPASSWD~ \

-- 
Bacula, a network backup, recovery and verification program



More information about the pkg-bacula-commits mailing list