blob: 80d6883fb2a820e0e486679a674fc72e760ad27c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
die() {
echo "#####"
echo $1
echo "#####"
exit 1
}
if [ $1 = "install" ]; then
if [ -a /etc/apache/vhosts.d/twiki.conf ]; then
sed -e "s|HOST|${VHOST_HOSTNAME}|
s|DOCROOT|${VHOST_HTDOCSDIR}|
s|ROOTDIR|${MY_INSTALLDIR}|g" -i /etc/apache/vhosts.d/twiki.conf || die "sed failed"
fi
# fix lib locations
sed -e "s|../lib|${MY_INSTALLDIR}/lib|" -i ${MY_INSTALLDIR}/bin/setlib.cfg || die
# fix TWiki.cfg
sed -e "s|http://your.domain.com|http://${VHOST_HOSTNAME}|
s|/home/httpd/twiki|${MY_INSTALLDIR}|g" -i ${MY_INSTALLDIR}/lib/TWiki.cfg || die
else
echo $1
fi
|