[debian-edu-commits] debian-edu/pkg-team/ 01/07: debian/gosa.postinst: Only create symlinks to lpstat and convert, if those binaries really exist on the system. (Closes: #811382).

Mike Gabriel sunweaver at debian.org
Fri Feb 12 10:12:50 UTC 2016


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

sunweaver pushed a commit to branch master
in repository gosa.

commit 6e3230253c6686135b6549fd6b3103e74c16ab41
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Feb 12 06:14:14 2016 +0100

    debian/gosa.postinst: Only create symlinks to lpstat and convert, if those binaries really exist on the system. (Closes: #811382).
---
 debian/gosa.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/gosa.postinst b/debian/gosa.postinst
index 573e32e..984e7b7 100755
--- a/debian/gosa.postinst
+++ b/debian/gosa.postinst
@@ -138,7 +138,7 @@ fi
 # Add links for safe mode
 [ ! -d /usr/share/gosa/bin ] && mkdir -p /usr/share/gosa/bin
 for source in "$(which convert)" "$(which lpstat)"; do
-	if [ -e $source ]; then
+	if [ -n "$source" ]; then
 		target=/usr/share/gosa/bin/${source##*/}
 		[ ! -L $target ] && ln -sf $source $target
 	fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/gosa.git



More information about the debian-edu-commits mailing list