Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
[mkws-moved-to-github.git] / test / bin / apache-template-update
index fc95b00..bf14cbd 100755 (executable)
@@ -12,7 +12,7 @@ export APACHE_RUN_GROUP=$(groups | awk '{ print $1 }')
 export APACHE_LOG_DIR=$APACHE_SERVER_ROOT/logs
 export APACHE_PID_FILE=$APACHE_LOG_DIR/mkws-jasmine.pid
 export APACHE_LOCK_FILE=$APACHE_LOG_DIR/accept.lock
-export APACHE_PORT=4040
+: ${APACHE_PORT=4040}; export APACHE_PORT
 
 export MKWS_ROOT=$(pwd)/..
 
@@ -23,6 +23,9 @@ case $(uname) in
           if [ -e /etc/debian_version ]; then
                MKWS_OS=debian  
           fi
+          if [ -e /etc/redhat-release ]; then
+               MKWS_OS=centos  
+          fi
           ;;
   * ) MKWS_OS=debian ;;
 esac