summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-04-10 13:57:47 +0100
committerGitHub <noreply@github.com>2023-04-10 13:57:47 +0100
commit0ae6ad7af43cf9446a1f1b323a122a6c1e81148d (patch)
tree8ae9d5806c22892d4c088bec369157494c32ff26
parentf5d40cf3cf8b29a289da31bb3f0368fcfaeae3c9 (diff)
parentc6f23303112e68d34bc4d8efd49217629d86296b (diff)
downloadvyos-1x-0ae6ad7af43cf9446a1f1b323a122a6c1e81148d.tar.gz
vyos-1x-0ae6ad7af43cf9446a1f1b323a122a6c1e81148d.zip
Merge pull request #1945 from sever-sever/T5148
T5148: Fix OpenVPN plugin dir variable
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index 13d84a6fe..6f227b0d1 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2019-2022 VyOS maintainers and contributors
+# Copyright (C) 2019-2023 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -597,7 +597,7 @@ def generate_pki_files(openvpn):
def generate(openvpn):
interface = openvpn['ifname']
directory = os.path.dirname(cfg_file.format(**openvpn))
- plugin_dir = '/usr/lib/openvpn'
+ openvpn['plugin_dir'] = '/usr/lib/openvpn'
# create base config directory on demand
makedir(directory, user, group)
# enforce proper permissions on /run/openvpn