Patch health checks to do the right thing

This commit is contained in:
PJ Eby 2020-04-26 17:11:58 -04:00
parent 4b6a1839fb
commit 3e3d73ef8a

View file

@ -50,6 +50,11 @@ shopt -q expand_aliases||{ unalias -a;shopt -s expand_aliases;};builtin alias +=
}}
}}
~ edit /healthcheck/nginx.sh; {{
- sub "http://127.0.0.1" '"http://$(hostname)"'
}}
~ edit /opt/admin/src/AppBundle/CommandInternal/DeliverQuarantineCommand.php; {{
# Quarantine "deliver" / deliver:quarantine should send to host, not localhost
- sub "\['msmtp', '-f'.*" "['msmtp', '--host', gethostname(), '-f', \$meta['from']];"
@ -159,6 +164,10 @@ haraka_sub_web=$sockdir/haraka/web-11381.sock
'servers = "'"$redis"'";'
}}
~ edit /healthcheck/redis.sh; {{
- sub '-h "127.0.0.1"' "-s '$redis'";
}}
~ edit /opt/admin/src/AppBundle/Resources/config/services.yml; {{
- sub '^ Predis\\Client: .*$' \
' Predis\\Client: { arguments: [ "unix:'"$redis"'" ] }'