[pkg-bacula-commits] [bacula] 02/06: fix test for empty dbc_user in bacula-director.postinst

Carsten Leonhardt leo at moszumanska.debian.org
Mon Sep 19 15:57:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

leo pushed a commit to branch master
in repository bacula.

commit 0cefece94e0a189729229e13328f38570a4a6480
Author: Carsten Leonhardt <leo at debian.org>
Date:   Mon Sep 19 00:25:52 2016 +0200

    fix test for empty dbc_user in bacula-director.postinst
---
 debian/bacula-director.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/bacula-director.postinst b/debian/bacula-director.postinst
index 99e808c..0e736a7 100644
--- a/debian/bacula-director.postinst
+++ b/debian/bacula-director.postinst
@@ -104,7 +104,7 @@ case "$1" in
 	DBLONGNAME=$(cat /usr/share/bacula-common/dbtype | sed 's/pgsql/postgresql/')
 	sed "s/XX_DBLONGNAME_XX/$DBLONGNAME/" -i $tempfile
 
-        if [ "$dbc_install" = "true" -a -n $dbc_user] ; then
+        if [ "$dbc_install" = "true" -a "x" != "x$dbc_user" ] ; then
 	    sed "s/XXX_DBUSER_XXX/$dbc_dbuser/" -i $tempfile
 	fi
 

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