Code

Tried to fix postinst linking
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Mar 2006 06:36:08 +0000 (06:36 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Mar 2006 06:36:08 +0000 (06:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2909 594d385d-05f5-0310-b6e9-bd551577e9d8

debian/gosa.postinst

index a7dcd436dfcb1efe11e3825d19ac2e8ddd4c98db..b9c18e66bce011b10e3f8a4417be3c30010b3956 100755 (executable)
@@ -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