DOCUMENT_ROOT catch fixed v4.0.0
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 12 Nov 2012 06:30:12 +0000 (07:30 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 12 Nov 2012 06:30:12 +0000 (07:30 +0100)
INSTALL.sh

index babf415..3195e3a 100755 (executable)
@@ -336,7 +336,7 @@ sed -i "s@var \+cookiepath \+= \+\"[^\"]*\";@var cookiepath = \"$prefix_path\";@
 
 sed -i "s@\( \+cookiepath *: *\)\"[^\"]*\" *,@\1 \"$prefix_path\",@g" ${web_path}__/xynt-http-streaming.js
 
-document_root="$(grep DocumentRoot "${apache_conf}" | awk '{ print $2 }')"
+document_root="$(grep DocumentRoot "${apache_conf}"  | grep -v '^#' | awk '{ print $2 }')"
 sed -i "s@^\(\$DOCUMENT_ROOT *= *[\"']\)[^\"']*\([\"']\)@\1$document_root\2@g" ${web_path}__/spush/*.ph*
 
 if [ -d ${web_path} ]; then