* check for links if they exist before trying to create them
authorWilfried Göesgens <willi@citadel.org>
Mon, 10 Mar 2008 19:06:14 +0000 (19:06 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 10 Mar 2008 19:06:14 +0000 (19:06 +0000)
* don't abort if creating fails.

webcit/debian/citadel-webcit.postinst

index 1a53cf8a0ce1a566abd7c1984edcc15a08fa30cb..844ae0aab6d7a530bc52d8f10da3fbe872e81cb2 100644 (file)
@@ -17,7 +17,9 @@ case "$1" in
        db_get citadel/WebcitApacheIntegration &&WWWTYPE="$RET"
        db_stop
 # Hack: make webcit use gnome icons. roll your own if wanted.
-       ln -s /usr/share/icons/gnome/24x24/mimetypes  /usr/share/citadel-webcit/static/icons
+       if test ! -L /usr/share/citadel-webcit/static/icons; then
+           ln -sf /usr/share/icons/gnome/24x24/mimetypes  /usr/share/citadel-webcit/static/icons || true
+       fi
        #DEBHELPER#
        
 # update the webserver, if needed