12345678910111213141516171819202122 |
- #!/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
|