should skip shared directory
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Fri, 19 Dec 2008 14:53:59 +0100
changeset 233 cd2f4ef6af37
parent 232 f1f26070117d
child 234 3a15b00df8a2
should skip shared directory
debian/cubicweb-common.postinst
--- 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