enable to run the tests on a different port.
[mkws-moved-to-github.git] / test / bin / apache-template-update
index b346dbb..bf14cbd 100755 (executable)
@@ -11,7 +11,8 @@ 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_PORT=4040
+export APACHE_LOCK_FILE=$APACHE_LOG_DIR/accept.lock
+: ${APACHE_PORT=4040}; export APACHE_PORT
 
 export MKWS_ROOT=$(pwd)/..
 
@@ -22,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