Skip to content

Commit

Permalink
cleanup commented line and display message
Browse files Browse the repository at this point in the history
  • Loading branch information
acaranta committed Apr 22, 2021
1 parent d0aba62 commit dfe5aa6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions inotifreload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dfe5aa6

Please sign in to comment.