-pecl: php.ini a été modifié
-npm: Cannot read property 'length' of undefined
-homebrew: config apache
This commit is contained in:
2019-04-04 10:14:59 +02:00
parent 0328bc8328
commit 74cb267bbf
3 changed files with 16 additions and 2 deletions

View File

@@ -149,8 +149,10 @@ echo ""
# Test if Apache conf file has been modified by Homebrew (Apache, PHP or Python updates)
dir="/usr/local/etc/httpd"
name="httpd.conf"
v_apa=$(httpd -V | grep 'SERVER_CONFIG_FILE')
conf_apa=$(echo "$v_apa" | awk -F "\"" '{print $2}')
dir=$(dirname $conf_apa)
name=$(basename $conf_apa)
test=$(find $dir -name "$name" -mmin -5 -maxdepth 1)
[ ! -z $test ] && echo -e "\033[1;31m❗ $name was modified in the last 5 minutes\033[0m"