author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> |
Thu, 24 Jun 2010 15:59:17 +0000 | |
branch | stable |
changeset 5833 | d7256ae7c1d1 |
parent 1448 | 62f099f0916f |
child 10559 | 5821ae654dfd |
permissions | -rw-r--r-- |
0 | 1 |
#! /bin/sh -e |
2 |
||
3 |
case "$1" in |
|
4 |
configure|abort-upgrade|abort-remove|abort-deconfigure) |
|
462
c6e313c7a2e0
use 99 as default sequence number in runlevel
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
241
diff
changeset
|
5 |
update-rc.d cubicweb defaults 99 >/dev/null |
0 | 6 |
;; |
7 |
*) |
|
8 |
echo "postinst called with unknown argument \`$1'" >&2 |
|
9 |
exit 1 |
|
10 |
;; |
|
11 |
esac |
|
12 |
||
13 |
if [ "$1" = configure ]; then |
|
14 |
# XXX bw compat: erudi -> cubicweb migration |
|
15 |
if [ -e "/etc/erudi.d/" ]; then |
|
1448
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
16 |
mv /etc/erudi.d/* /etc/cubicweb.d/ && ( |
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
17 |
echo 'moved /etc/erudi.d/* to /etc/cubicweb.d/' |
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
18 |
sed -i s/ginco/cubicweb/g /etc/*/*.py |
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
19 |
sed -i s/erudi/cubicweb/ */*.conf |
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
20 |
) || true # empty dir |
0 | 21 |
fi |
22 |
if [ -e "/var/log/erudi/" ]; then |
|
1448
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
23 |
mv /var/log/erudi/* /var/log/cubicweb/ && ( |
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
24 |
echo 'moved /var/log/erudi/* to /var/log/cubicweb/' |
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
25 |
) || true # empty dir |
0 | 26 |
fi |
27 |
if [ -e "/var/lib/erudi/backup" ]; then |
|
1448
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
28 |
mv /var/lib/erudi/backup/* /var/lib/cubicweb/backup/ && ( |
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
29 |
echo 'moved /var/lib/erudi/backup/* to /var/lib/cubicweb/backup/' |
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
30 |
) || true # empty dir |
0 | 31 |
fi |
32 |
if [ -e "/var/lib/erudi/instances" ]; then |
|
1448
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
33 |
mv /var/lib/erudi/instances/* /var/lib/cubicweb/instances/ && ( |
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
34 |
echo 'moved /var/lib/erudi/instances/* to /var/lib/cubicweb/instances/' |
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
35 |
) || true # empty dir |
0 | 36 |
fi |
37 |
fi |
|
1448
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
38 |
|
0 | 39 |
#DEBHELPER# |
1448
62f099f0916f
deals with empty erudi directories
sylvain.thenault@logilab.fr
parents:
462
diff
changeset
|
40 |
|
0 | 41 |
exit 0 |