author | Julien Jehannet <julien.jehannet@logilab.fr> |
Fri, 16 Jan 2009 20:03:58 +0100 | |
changeset 462 | c6e313c7a2e0 |
parent 241 | 89e11cc865b2 |
child 1448 | 62f099f0916f |
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 |
|
16 |
mv /etc/erudi.d/* /etc/cubicweb.d/ |
|
17 |
echo 'moved /etc/erudi.d/* to /etc/cubicweb.d/' |
|
241
89e11cc865b2
fix debian package
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
18 |
sed -i s/ginco/cubicweb/g /etc/*/*.py |
89e11cc865b2
fix debian package
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
19 |
sed -i s/erudi/cubicweb/ */*.conf |
0 | 20 |
fi |
21 |
if [ -e "/var/log/erudi/" ]; then |
|
22 |
mv /var/log/erudi/* /var/log/cubicweb/ |
|
23 |
echo 'moved /var/log/erudi/* to /var/log/cubicweb/' |
|
24 |
fi |
|
25 |
if [ -e "/var/lib/erudi/backup" ]; then |
|
26 |
mv /var/lib/erudi/backup/* /var/lib/cubicweb/backup/ |
|
27 |
echo 'moved /var/lib/erudi/backup/* to /var/lib/cubicweb/backup/' |
|
28 |
fi |
|
29 |
if [ -e "/var/lib/erudi/instances" ]; then |
|
30 |
mv /var/lib/erudi/instances/* /var/lib/cubicweb/instances/ |
|
31 |
echo 'moved /var/lib/erudi/instances/* to /var/lib/cubicweb/instances/' |
|
32 |
fi |
|
33 |
fi |
|
34 |
||
35 |
#DEBHELPER# |
|
36 |
||
37 |
exit 0 |