From 9100eeda5d275f5f979f97b5429edc3dc3cea3a8 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 1 Mar 2006 05:21:28 +0000 Subject: [PATCH] Check if the target already exists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2784 594d385d-05f5-0310-b6e9-bd551577e9d8 --- debian/gosa.postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/gosa.postinst b/debian/gosa.postinst index d00dcc204..8ca80a44c 100755 --- a/debian/gosa.postinst +++ b/debian/gosa.postinst @@ -40,7 +40,9 @@ chmod 770 -R /var/spool/gosa # Add links for safe mode for link in /usr/bin/convert /usr/bin/lpstat; do - [ -L $link ] || ln -sf $link /usr/share/gosa/bin/${link##*/} + target=/usr/share/gosa/bin/${link##*/} + [ -L $target ] && continue + [ -f $link ] || ln -sf $link $target done # Finally restart servers -- 2.30.2