summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/control1
-rwxr-xr-xsrc/conf_mode/http-api.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/control b/debian/control
index 12eb7c309..dce463157 100644
--- a/debian/control
+++ b/debian/control
@@ -65,6 +65,7 @@ Depends: python3,
mtr-tiny,
telnet,
traceroute,
+ ssl-cert, nginx-light,
${shlibs:Depends},
${misc:Depends}
Description: VyOS configuration scripts and data
diff --git a/src/conf_mode/http-api.py b/src/conf_mode/http-api.py
index 1f91ac582..9c062f0aa 100755
--- a/src/conf_mode/http-api.py
+++ b/src/conf_mode/http-api.py
@@ -69,6 +69,9 @@ def generate(http_api):
if http_api is None:
return None
+ if not os.path.exists('/etc/vyos'):
+ os.mkdir('/etc/vyos')
+
with open(config_file, 'w') as f:
json.dump(http_api, f, indent=2)