From 95548f03de41d36428c95c5e41b32ea35cd972e5 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 27 Mar 2006 06:36:08 +0000 Subject: [PATCH] Tried to fix postinst linking git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2909 594d385d-05f5-0310-b6e9-bd551577e9d8 --- debian/gosa.postinst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/gosa.postinst b/debian/gosa.postinst index a7dcd436d..b9c18e66b 100755 --- a/debian/gosa.postinst +++ b/debian/gosa.postinst @@ -39,11 +39,11 @@ chown root.$WEBGROUP -R /var/spool/gosa chmod 770 -R /var/spool/gosa # Add links for safe mode -for link in /usr/bin/convert /usr/bin/lpstat; do - [ ! -e $link ] && continue - target=/usr/share/gosa/bin/${link##*/} - [ -L $target ] && continue - ln -sf $link $target +for source in /usr/bin/convert /usr/bin/lpstat; do + if [ -e $source ]; then + target=/usr/share/gosa/bin/${source##*/} + [ ! -L $target ] && ln -sf $source $target + fi done # Finally restart servers -- 2.30.2