#!/bin/bash

export HTTPD_ROOT="$1"

sed -i "s#_SRVROOT_SRC_#${HTTPD_ROOT}#g" $1/conf/httpd.conf

sed -i "s#_SRVROOT_SRC_#${HTTPD_ROOT}#g" $1/bin/apachectl
sed -i "s#_SRVROOT_SRC_#${HTTPD_ROOT}#g" $1/bin/start.sh
sed -i "s#_SRVROOT_SRC_#${HTTPD_ROOT}#g" $1/bin/stop.sh
