blob: e9e2f47b3f69279df285e0f378ede0e59ce33b93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
die() {
echo "#####"
echo "$@"
echo "#####"
exit 1
}
if [[ $1 == "install" ]] ; then
cd "${MY_INSTALLDIR}" || die
files="lxr.conf $(ls ._cfg*lxr.conf 2>/dev/null)"
sed -i \
-e "s|/lxr|${VHOST_APPDIR}|" \
-e "s|192.168.1.3/lxr|${VHOST_HOSTNAME}${VHOST_APPDIR}|" \
${files} || die
elif [[ $1 = "clean" ]] ; then
echo $1
fi
exit 0
|