Skip to content

Commit d7ca570

Browse files
authored
More bug fixes in certbot deployment
Certbot has changed naming convention for PEM files (adding 1 to the end of the name). Also fix bad log arguments.
1 parent 977b92e commit d7ca570

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

deploy-certbot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
logger.info('Renewed domains: %r', domains_env.split(' '))
2626
src_path = Path(lineage_env)
27-
cert_src = str((src_path / 'fullchain.pem').resolve())
28-
key_src = str((src_path / 'privkey.pem').resolve())
27+
cert_src = str((src_path / 'fullchain1.pem').resolve())
28+
key_src = str((src_path / 'privkey1.pem').resolve())
2929
cert_dst = '{}:{}'.format(CONTAINER, str(CONTAINER_TLS / 'server.crt'))
3030
key_dst = '{}:{}'.format(CONTAINER, str(CONTAINER_TLS / 'server.key'))
3131

@@ -34,7 +34,7 @@
3434
subprocess.run(['docker', 'cp', cert_src, cert_dst], check=True)
3535
logger.info('Copying %s to Docker %s', key_src, key_dst)
3636
subprocess.run(['docker', 'cp', key_src, key_dst], check=True)
37-
logger.info('Reloading nginx', key_src, key_dst)
37+
logger.info('Reloading nginx...')
3838
subprocess.run(['docker', 'exec', CONTAINER, 'nginx', '-s', 'reload'],
3939
check=True)
4040
except subprocess.CalledProcessError as cpe:

0 commit comments

Comments
 (0)