From 3130c80cb5f4f2ffb973818c6a0492b200577d5d Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 8 May 2013 07:44:34 +0200 Subject: [PATCH] more flexible document_root retriver --- INSTALL.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL.sh b/INSTALL.sh index 257d867..b021de5 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -x +# set -x # # Defaults # @@ -367,7 +367,7 @@ sed -i "s@var \+cookiepath \+= \+\"[^\"]*\";@var cookiepath = \"$prefix_path\";@ sed -i "s@\( \+cookiepath *: *\)\"[^\"]*\" *,@\1 \"$prefix_path\",@g" ${web_path}__/xynt-streaming.js -document_root="$(grep DocumentRoot "${apache_conf}" | grep -v '^#' | 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 -- 2.17.1