Skip to content
Snippets Groups Projects
Commit 6d9dfd99 authored by Hugo Mangeart's avatar Hugo Mangeart
Browse files

Update 0_setup.py to reduce interactions

set contact email to sysadmin@ubicast.eu only because certbot doesn't accept multiple emails 
parent c96fab4b
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ def setup(interactive=True): ...@@ -48,7 +48,7 @@ def setup(interactive=True):
cmds = [ cmds = [
'mkdir -p /tmp/letsencrypt', 'mkdir -p /tmp/letsencrypt',
'chmod 755 /tmp/letsencrypt', 'chmod 755 /tmp/letsencrypt',
'certbot certonly --rsa-key-size 4096 --webroot --webroot-path /tmp/letsencrypt --domains "%s" --email "%s"' % (','.join(domains), utils.get_conf('EMAIL_ADMINS') or 'sysadmin@ubicast.eu'), 'certbot certonly --agree-to-tos --no-eff-email --rsa-key-size 4096 --webroot --webroot-path /tmp/letsencrypt --domains "%s" --email sysadmin@ubicast.eu' % (','.join(domains)),
] ]
utils.run_commands(cmds) utils.run_commands(cmds)
# Update Nginx configuration in ssl.conf # Update Nginx configuration in ssl.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment