]> code.citadel.org Git - citadel.git/blobdiff - webcit/debian/citadel-webcit.postinst
* check for links if they exist before trying to create them
[citadel.git] / 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