From 4d4ad42a0066451c2a0d7bbeedb3a22bb879ea2f Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 22 May 2014 10:16:05 +0200 Subject: [PATCH] support multiple OS --- test/bin/apache-template-update | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/bin/apache-template-update b/test/bin/apache-template-update index 0ad5bc9..b346dbb 100755 --- a/test/bin/apache-template-update +++ b/test/bin/apache-template-update @@ -15,6 +15,19 @@ export APACHE_PORT=4040 export MKWS_ROOT=$(pwd)/.. +MKWS_OS=debian +case $(uname) in + Darwin ) MKWS_OS=macos ;; + Linux ) MKWS_OS=debian + if [ -e /etc/debian_version ]; then + MKWS_OS=debian + fi + ;; + * ) MKWS_OS=debian ;; +esac + +export APACHE_MODULES="$MKWS_ROOT/tools/apache2/jasmine-dev.apache-modules.$MKWS_OS.conf" + : ${MKWS_APACHE_TEMPLATE="$MKWS_ROOT/tools/apache2/jasmine-dev.template"} : ${MKWS_APACHE_FILE="$APACHE_LOG_DIR/jasmine-dev"} -- 1.7.10.4