fix: healthcheck
Part-of: <http://gitlab.vnc.biz/uxf/vnctalk-prosody/-/merge_requests/1>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#is running and healthy by checking if the TCP port 5582 is open and responsive.
|
||||
|
||||
if [ -f /etc/tls-update/tls.crt ]; then
|
||||
OLDHASH=$(md5sum /etc/prosody/prosody-ssl.pem | awk '{print $1}')
|
||||
OLDHASH=$(md5sum /etc/prosody/certs/prosody-ssl.pem | awk '{print $1}')
|
||||
NEWHASH=$(md5sum /etc/tls-update/tls.crt | awk '{print $1}')
|
||||
if [ "x$OLDHASH" != "x$NEWHASH" ]; then
|
||||
# cert in secret is changed - fail healthcheck to restart with new cert
|
||||
|
||||
Reference in New Issue
Block a user