11 esac |
11 esac |
12 |
12 |
13 if [ "$1" = configure ]; then |
13 if [ "$1" = configure ]; then |
14 # XXX bw compat: erudi -> cubicweb migration |
14 # XXX bw compat: erudi -> cubicweb migration |
15 if [ -e "/etc/erudi.d/" ]; then |
15 if [ -e "/etc/erudi.d/" ]; then |
16 mv /etc/erudi.d/* /etc/cubicweb.d/ |
16 mv /etc/erudi.d/* /etc/cubicweb.d/ && ( |
17 echo 'moved /etc/erudi.d/* to /etc/cubicweb.d/' |
17 echo 'moved /etc/erudi.d/* to /etc/cubicweb.d/' |
18 sed -i s/ginco/cubicweb/g /etc/*/*.py |
18 sed -i s/ginco/cubicweb/g /etc/*/*.py |
19 sed -i s/erudi/cubicweb/ */*.conf |
19 sed -i s/erudi/cubicweb/ */*.conf |
|
20 ) || true # empty dir |
20 fi |
21 fi |
21 if [ -e "/var/log/erudi/" ]; then |
22 if [ -e "/var/log/erudi/" ]; then |
22 mv /var/log/erudi/* /var/log/cubicweb/ |
23 mv /var/log/erudi/* /var/log/cubicweb/ && ( |
23 echo 'moved /var/log/erudi/* to /var/log/cubicweb/' |
24 echo 'moved /var/log/erudi/* to /var/log/cubicweb/' |
|
25 ) || true # empty dir |
24 fi |
26 fi |
25 if [ -e "/var/lib/erudi/backup" ]; then |
27 if [ -e "/var/lib/erudi/backup" ]; then |
26 mv /var/lib/erudi/backup/* /var/lib/cubicweb/backup/ |
28 mv /var/lib/erudi/backup/* /var/lib/cubicweb/backup/ && ( |
27 echo 'moved /var/lib/erudi/backup/* to /var/lib/cubicweb/backup/' |
29 echo 'moved /var/lib/erudi/backup/* to /var/lib/cubicweb/backup/' |
|
30 ) || true # empty dir |
28 fi |
31 fi |
29 if [ -e "/var/lib/erudi/instances" ]; then |
32 if [ -e "/var/lib/erudi/instances" ]; then |
30 mv /var/lib/erudi/instances/* /var/lib/cubicweb/instances/ |
33 mv /var/lib/erudi/instances/* /var/lib/cubicweb/instances/ && ( |
31 echo 'moved /var/lib/erudi/instances/* to /var/lib/cubicweb/instances/' |
34 echo 'moved /var/lib/erudi/instances/* to /var/lib/cubicweb/instances/' |
|
35 ) || true # empty dir |
32 fi |
36 fi |
33 fi |
37 fi |
34 |
38 |
35 #DEBHELPER# |
39 #DEBHELPER# |
36 |
40 |
37 exit 0 |
41 exit 0 |