]> code.citadel.org Git - citadel.git/blobdiff - webcit/debian/citadel-webcit.postinst
* busting the prototype package isn't that easy as its swapping places.
[citadel.git] / webcit / debian / citadel-webcit.postinst
index 63d6bf9abeb1d43bfb8830f95ca08c69d9fbb8a9..e836598d5014a100d1d394cfddcde1b0344caf9e 100644 (file)
@@ -22,7 +22,11 @@ case "$1" in
        fi
        #DEBHELPER#
        if test ! -L /usr/share/citadel-webcit/static/; then
-           ln -sf /usr/share/prototypejs/prototype.js /usr/share/citadel-webcit/static/        
+           if test -d /usr/share/prototypejs; then 
+               ln -sf /usr/share/prototypejs/prototype.js /usr/share/citadel-webcit/static/    
+           else
+               ln -sf /usr/share/javascript/prototype/prototype.js /usr/share/citadel-webcit/static/   
+           fi
        fi
 # update the webserver, if needed
        case "$WWWTYPE" in