fix debian package
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Fri, 19 Dec 2008 17:09:52 +0100
changeset 241 89e11cc865b2
parent 240 6ba006fb95d1
child 242 26bd3a406889
fix debian package
debian/cubicweb-common.postinst
debian/cubicweb-ctl.postinst
--- 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/