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