mds/www-apps/openid-ldap/files/reconfig-6.4_p3
geos_one f3426269b2 bump
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2911 6952d904-891a-0410-993b-d76249ca496b
2011-06-08 15:26:24 +00:00

19 lines
361 B
Bash

#!/bin/bash
die() {
echo "#####"
echo $1
echo "#####"
exit 1
}
if [ $1 = "install" ]; then
sed -e "s|/home/metadot/metadot|${MY_INSTALLDIR}|g" -i ${MY_INSTALLDIR}/etc/metadot.conf || die
# fix Apache configs
sed -e "s|ROOTDIR|${MY_INSTALLDIR}|g
s|VHOST|${VHOST_HOSTNAME}|" -i ${VHOST_ROOT}/metadot.conf || die
elif [ $1 = "clean" ]; then
echo $1
fi