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:
parent
4c2e13009b
commit
b8a12ad192
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user