Update certs.inc

This commit is contained in:
2025-07-05 15:23:32 -05:00
parent 09ebdc9c6d
commit 84c9cf8b2c

View File

@@ -675,7 +675,7 @@ COPYCERTS(){
COPYTO=${CERTFOLDERS[${i}]}
NCF=false
scp le@keepalived.scity.us:/etc/letsencrypt/live/${CERTSITE}/privkey.pem ${COPYTO}/privkey.pem
if [ ! /usr/bin/md5sum -c ${COPYTO}/privkey.pem.md5 ] || [ "${3^^}" == "FORCE" ]; then
if [ ! $(/usr/bin/md5sum -c ${COPYTO}/privkey.pem.md5) ] || [ "${3^^}" == "FORCE" ]; then
echo "scp le@keepalived.scity.us:/etc/letsencrypt/live/${CERTSITE}/* ${COPYTO}/"
# scp le@keepalived.scity.us:/etc/letsencrypt/live/${CERTSITE}/* ${COPYTO}/
# rm -f ${COPYTO}/privkey.pem.md5