debian/cubicweb-common.postinst
changeset 233 cd2f4ef6af37
parent 0 b97547f5f1fa
--- a/debian/cubicweb-common.postinst	Fri Dec 19 14:53:40 2008 +0100
+++ b/debian/cubicweb-common.postinst	Fri Dec 19 14:53:59 2008 +0100
@@ -3,7 +3,10 @@
 if [ "$1" = configure ]; then
     # XXX bw compat: erudi -> cubicweb migration
     if [ -e "/usr/share/erudi/templates/" ]; then
+      # skip the "shared" subdirectory by moving it first, restoring it later
+      mv /usr/share/erudi/templates/shared /usr/share/erudi/
       mv /usr/share/erudi/templates/* /usr/share/cubicweb/cubes/
+      mv /usr/share/erudi/shared /usr/share/erudi/templates
       echo 'moved /usr/share/erudi/templates/* to /usr/share/cubicweb/cubes/'
     fi
 fi