_homebrew.sh

Display an alerte if the httpd.conf file was modified during the last 5 minutes (new php, python or apache version)
This commit is contained in:
2019-02-13 22:15:17 +01:00
parent a49c5a79c0
commit 8dcdbd16ee

View File

@@ -140,6 +140,15 @@ brew doctor
brew missing brew missing
echo "" 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 # Homebrew 2.0.0+ run a cleanup every 30 days
if [[ $1 == "--cleanup" ]]; then if [[ $1 == "--cleanup" ]]; then