--- a/debian/cubicweb-common.postinst Fri Dec 19 17:03:15 2008 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#! /bin/sh -e
-
-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
-#DEBHELPER#
-
-exit 0
--- a/debian/cubicweb-ctl.postinst Fri Dec 19 17:03:15 2008 +0100
+++ b/debian/cubicweb-ctl.postinst Fri Dec 19 17:09:52 2008 +0100
@@ -15,6 +15,8 @@
if [ -e "/etc/erudi.d/" ]; then
mv /etc/erudi.d/* /etc/cubicweb.d/
echo 'moved /etc/erudi.d/* to /etc/cubicweb.d/'
+ sed -i s/ginco/cubicweb/g /etc/*/*.py
+ sed -i s/erudi/cubicweb/ */*.conf
fi
if [ -e "/var/log/erudi/" ]; then
mv /var/log/erudi/* /var/log/cubicweb/