#!/bin/bash if [ $1 = "start" -o $1 = "install" ]; then # somewhat braindead - not sure which Apache we're using, so try both [[ -a /etc/apache/modules.d/55_webdruid.conf ]] && file1="/etc/apache/modules.d/55_webdruid.conf" [[ -a /etc/apache2/modules.d/55_webdruid.conf ]] && file2="/etc/apache2/modules.d/55_webdruid.conf" sed -e "s|DIR|${MY_INSTALLDIR}|g" -i ${file1} ${file2} /etc/webdruid/webdruid.conf fi