From b0c2f880ac5fe9448392de88b14af5b0e0db85d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 21 Jul 2024 00:33:41 +0200 Subject: [PATCH] Revert certificate typo --- setup/migrate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/migrate.py b/setup/migrate.py index 602f84a1..94bea923 100755 --- a/setup/migrate.py +++ b/setup/migrate.py @@ -23,11 +23,11 @@ def migration_1(env): # Migrate the 'domains' directory. for sslfn in glob.glob(os.path.join( env["STORAGE_ROOT"], 'ssl/domains/*' )): fn = os.path.basename(sslfn) - m = re.match("(.*)_(certificate.pem|cert_sign_req.csr|private_key.pem)$", fn) + m = re.match("(.*)_(certifiate.pem|cert_sign_req.csr|private_key.pem)$", fn) if m: # get the new name for the file domain_name, file_type = m.groups() - if file_type == "certificate.pem": file_type = "ssl_certificate.pem" # typo + if file_type == "certifiate.pem": file_type = "ssl_certificate.pem" # typo if file_type == "cert_sign_req.csr": file_type = "certificate_signing_request.csr" # nicer move_file(sslfn, domain_name, file_type)