From dfe5aa6262a5b44103e08cf507d48e219e6f50b9 Mon Sep 17 00:00:00 2001 From: acaranta Date: Thu, 22 Apr 2021 12:44:24 +0200 Subject: [PATCH] cleanup commented line and display message --- inotifreload.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/inotifreload.sh b/inotifreload.sh index bcf293a..265827f 100755 --- a/inotifreload.sh +++ b/inotifreload.sh @@ -32,14 +32,11 @@ while true; do if [ ! -d /etc/haproxy/certs ]; then mkdir /etc/haproxy/certs rsync -ad /hacfg/certs /etc/haproxy --delete - #cp -rf /hacfg/certs/* /etc/haproxy/certs/ - fi diff /hacfg/certs /etc/haproxy/certs 2>&1 >/dev/null if [ $? -gt 0 ]; then - echo "$(date) - Found changes in /hacfg/certs file..." + echo "$(date) - Found changes in /hacfg/certs directory ..." #if it changed, then copy it and reload properly haproxy rsync -ad /hacfg/certs /haproxy --delete - #cp -rf /hacfg/certs/* /etc/haproxy/certs/ RELOAD=1 fi