From 8dcdbd16ee587451b9ad3be012c6e41c7408260b Mon Sep 17 00:00:00 2001 From: Bruno 21 Date: Wed, 13 Feb 2019 22:15:17 +0100 Subject: [PATCH] _homebrew.sh Display an alerte if the httpd.conf file was modified during the last 5 minutes (new php, python or apache version) --- _homebrew.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/_homebrew.sh b/_homebrew.sh index f252f93..77e3233 100755 --- a/_homebrew.sh +++ b/_homebrew.sh @@ -140,6 +140,15 @@ brew doctor brew missing echo "" +# Test if Apache conf file has been modified by Homebrew (Apache, PHP or Python updates) + +dir="/usr/local/etc/httpd" +name="httpd.conf" + +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" + + # Homebrew 2.0.0+ run a cleanup every 30 days if [[ $1 == "--cleanup" ]]; then