From b62f96547080b4e13967d112e45195ff321a1a88 Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Sun, 26 Jan 2020 16:40:13 +0100 Subject: [PATCH] apache_tools.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bugfix: suppression des «  pour document_root --- apache_tools.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apache_tools.sh b/apache_tools.sh index 41e1c4a..39170f3 100755 --- a/apache_tools.sh +++ b/apache_tools.sh @@ -8,7 +8,7 @@ echo -e "\033[1mApache Tools: \033[0m" # apache v_apa=$(httpd -V | grep 'SERVER_CONFIG_FILE') conf_apa=$(echo "$v_apa" | awk -F "\"" '{print $2}') -document_root=$(grep -e '^DocumentRoot' "$conf_apa" | awk '{print $2}') +document_root=$(grep -e '^DocumentRoot' "$conf_apa" | awk '{print $2}' | sed 's/\"//g') log_apa=$(grep -e '^ErrorLog' "$conf_apa" | awk -F "\"" '{print $2}') access_apa=$(grep -e 'CustomLog' "$conf_apa" | grep -v "#" | awk -F "\"" '{print $2}') vhost=$(grep -e 'httpd-vhosts.conf' "$conf_apa" | awk '{print $2}') @@ -19,8 +19,6 @@ v_php=$(php --ini | grep -E 'usr.*ini') php_ini=$(php --ini) -# echo '' > $document_root/php-info.php && open 'http://localhost/php-info.php' - conf_php=$(echo "$php_ini" | grep 'Loaded Configuration File' | awk '{print $NF}') addconf_dir="`dirname $conf_php`/conf.d/"