summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-26 08:53:15 +0200
committerChristian Poessinger <christian@poessinger.com>2021-06-26 08:53:15 +0200
commit03e1d273acf3c182da69013288eda3a8f274153b (patch)
treee46e0008eac23c2c8b21d818995e735f2c91e50e /src/op_mode
parent037aa93f493648f6e99b796fce920ec63dbc994e (diff)
downloadvyos-1x-03e1d273acf3c182da69013288eda3a8f274153b.tar.gz
vyos-1x-03e1d273acf3c182da69013288eda3a8f274153b.zip
Revert "ipsec: T3643: move swanctl.conf to /run"
This reverts commit 95bbbb8bed92a60a320ff255c8b8656145f3c540.
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/vpn_ipsec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/vpn_ipsec.py b/src/op_mode/vpn_ipsec.py
index 68eb5e473..dd5a85ed3 100755
--- a/src/op_mode/vpn_ipsec.py
+++ b/src/op_mode/vpn_ipsec.py
@@ -33,7 +33,7 @@ X509_CONFIG_PATH = '/etc/ipsec.d/key-pair.template'
X509_PATH = '/config/auth/'
IPSEC_CONF = '/etc/ipsec.conf'
-SWANCTL_CONF = '/run/swanctl/swanctl.conf'
+SWANCTL_CONF = '/etc/swanctl/swanctl.conf'
def migrate_to_vyatta_key(path):
with open(path, 'r') as f:
@@ -90,7 +90,7 @@ def generate_x509_pair(name):
return
result = os.system(f'openssl req -new -nodes -keyout {X509_PATH}{name}.key -out {X509_PATH}{name}.csr -config {X509_CONFIG_PATH}')
-
+
if result != 0:
print(f'Could not generate x509 key-pair: {result}')
return