]> code.citadel.org Git - citadel.git/blobdiff - webcit/debian/citadel-webcit.postinst
* use the debian prototypejs package
[citadel.git] / webcit / debian / citadel-webcit.postinst
index 1a53cf8a0ce1a566abd7c1984edcc15a08fa30cb..63d6bf9abeb1d43bfb8830f95ca08c69d9fbb8a9 100644 (file)
@@ -17,9 +17,13 @@ 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#
-       
+       if test ! -L /usr/share/citadel-webcit/static/; then
+           ln -sf /usr/share/prototypejs/prototype.js /usr/share/citadel-webcit/static/        
+       fi
 # update the webserver, if needed
        case "$WWWTYPE" in
            "Apache")