MacOS: symlink to /usr/libexec, MKWS-240
[mkws-moved-to-github.git] / test / bin / apache-template-update
index b346dbb..f094eae 100755 (executable)
@@ -11,17 +11,23 @@ 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)/..
 
 MKWS_OS=debian 
 case $(uname) in
-  Darwin ) MKWS_OS=macos ;;
+  Darwin ) MKWS_OS=macos 
+          test -e libexec || ln -fs /usr/libexec .
+          ;;
   Linux )  MKWS_OS=debian 
           if [ -e /etc/debian_version ]; then
                MKWS_OS=debian  
           fi
+          if [ -e /etc/redhat-release ]; then
+               MKWS_OS=centos  
+          fi
           ;;
   * ) MKWS_OS=debian ;;
 esac