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

master
Marcel Hofer 2020-01-17 22:36:04 +01:00 committed by André Peters
parent 4c2e13009b
commit b8a12ad192
1 changed files with 1 additions and 0 deletions

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