X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fbin%2Fapache-template-update;h=0ad5bc98ad2838038a86c344418a76b629624bd8;hb=54f01e1910f918a990a38c6108356f27dbc7b049;hp=54be8e0990be357ea300e6f83349788b6f8f6db4;hpb=ce060b0800d633364fb63b19e693f76ba5ef7478;p=mkws-moved-to-github.git diff --git a/test/bin/apache-template-update b/test/bin/apache-template-update index 54be8e0..0ad5bc9 100755 --- a/test/bin/apache-template-update +++ b/test/bin/apache-template-update @@ -8,14 +8,15 @@ export APACHE_SERVER_ROOT=$(pwd) export APACHE_RUN_USER=$(whoami) export APACHE_RUN_GROUP=$(groups | awk '{ print $1 }') -export APACHE_PID_FILE=$PWD/logs/mkws-jasmine.pid -export APACHE_LOG_DIR=$PWD/logs + +export APACHE_LOG_DIR=$APACHE_SERVER_ROOT/logs +export APACHE_PID_FILE=$APACHE_LOG_DIR/mkws-jasmine.pid export APACHE_PORT=4040 export MKWS_ROOT=$(pwd)/.. : ${MKWS_APACHE_TEMPLATE="$MKWS_ROOT/tools/apache2/jasmine-dev.template"} -: ${MKWS_APACHE_FILE="$MKWS_ROOT/tools/apache2/jasmine-dev"} +: ${MKWS_APACHE_FILE="$APACHE_LOG_DIR/jasmine-dev"} perl -npe 's,\${(.*?)},$ENV{$1},g; ' $MKWS_APACHE_TEMPLATE > $MKWS_APACHE_FILE.tmp mv -f $MKWS_APACHE_FILE.tmp $MKWS_APACHE_FILE