1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-01-14 04:35:43 +02:00

[SSL] fix bug with pruning old certificates (#3272)

This commit is contained in:
Marcel Hofer 2020-01-17 22:36:04 +01:00 committed by André Peters
parent 4c2e13009b
commit b8a12ad192

View File

@ -328,6 +328,7 @@ while true; do
log_f "Found orphaned certificate: ${EXISTING_CERT} - archiving it at ${ACME_BASE}/backups/${EXISTING_CERT}/"
BACKUP_DIR=${ACME_BASE}/backups/${EXISTING_CERT}/${DATE}
# archive rsa cert and any other files
mkdir -p ${ACME_BASE}/backups/${EXISTING_CERT}
mv ${ACME_BASE}/${EXISTING_CERT} ${BACKUP_DIR}
CERT_CHANGED=1
CERT_AMOUNT_CHANGED=1