diff --git a/debian/gosa.postinst b/debian/gosa.postinst
index 682aa471f2f1c881e5ccf95b68c6498d8733392f..f320e7ebbf1cd8a55ae32870ddb4927bcf12c7fb 100755 (executable)
--- a/debian/gosa.postinst
+++ b/debian/gosa.postinst
chmod 770 -R /var/spool/gosa
# Add links for safe mode
-for link in /usr/bin/convert /usr/bin/lpstat; do
- [ -f $link ] || ln -sf $link /usr/share/gosa/bin/${link##*/}
+[ ! -d /usr/share/gosa/bin ] && mkdir -p /usr/share/gosa/bin
+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