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

Bart Swedrowski bart at timedout.org
Mon Jul 30 13:13:30 UTC 2012


The following commit has been merged in the master branch:
commit 82737eb31724a617974ba6cd339f543db467fe8b
Author: Bart Swedrowski <bart at timedout.org>
Date:   Mon Jul 30 13:03:42 2012 +0100

    Fix hostname substitution in debian/bacula-console.postinst

diff --git a/debian/bacula-console.postinst b/debian/bacula-console.postinst
index 319fe7b..c439d0a 100644
--- a/debian/bacula-console.postinst
+++ b/debian/bacula-console.postinst
@@ -18,10 +18,11 @@ case "$1" in
 		TARGET=$DSTDIR/$CONFIG.dist
 	fi
 
-	sed -e "s~@debian_hostname@~localhost~" \
+	sed -e s~@debian_hostname@~`hostname`~ \
 	-e s~XXX_DIRPASSWORD_XXX~$DIRPASSWD~ \
 		< $SRCDIR/$CONFIG > $TARGET
 
+        # Harden permissions, so that passwords can not be looked at
 	chown root:bacula $TARGET
 	chmod 640 $TARGET
     ;;
diff --git a/debian/changelog b/debian/changelog
index 2742946..bdfe803 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -32,6 +32,10 @@ bacula (5.2.6+dfsg-3) unstable; urgency=high
   * debian/bacula-console.postrm:
     + fix files left after bacula-console package purge (Closes: #682733).
 
+  [ Bart Swedrowski ]
+  * debian/bacula-console.postinst
+    + fix hostname substitution (Closes: #682966).
+
  -- 
 
 bacula (5.2.6+dfsg-2) unstable; urgency=low

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



More information about the pkg-bacula-commits mailing list