From: cajus Date: Mon, 27 Mar 2006 06:36:08 +0000 (+0000) Subject: Tried to fix postinst linking X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=95548f03de41d36428c95c5e41b32ea35cd972e5;p=gosa.git Tried to fix postinst linking git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2909 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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