summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-08-19 23:16:35 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-08-19 23:16:35 -0500
commit41c847593551496770c4d08e09e32af638a30f40 (patch)
treea5f9a85293c860a4292150bf386662b39aed3f45 /src
parent0bc94e588fea31888445d182f54803598e82b615 (diff)
downloadvyos-1x-41c847593551496770c4d08e09e32af638a30f40.tar.gz
vyos-1x-41c847593551496770c4d08e09e32af638a30f40.zip
https: T2815: adjust for change in certbot config directory
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/https.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/conf_mode/https.py b/src/conf_mode/https.py
index 7acb629bd..3dae0fddb 100755
--- a/src/conf_mode/https.py
+++ b/src/conf_mode/https.py
@@ -31,6 +31,7 @@ from vyos import airbag
airbag.enable()
config_file = '/etc/nginx/sites-available/default'
+certbot_dir = vyos.defaults.directories['certbot']
default_server_block = {
'id' : '',
@@ -86,8 +87,9 @@ def get_config():
if sub_list:
for sb in sub_list:
sb['certbot'] = True
+ sb['certbot_dir'] = certbot_dir
# certbot organizes certificates by first domain
- sb['certbot_dir'] = certbot_domains[0]
+ sb['certbot_domain_dir'] = certbot_domains[0]
api_somewhere = False
api_data = {}