summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-13 14:01:18 +0200
committerGitHub <noreply@github.com>2020-04-13 14:01:18 +0200
commit19effc69296911e45e848f96100ff6595571a7df (patch)
treec345d87b943bdc3f1af69bd2004f05032ab94d83 /src
parent9c8dac06170eaddd312abb52b0b5724ada4c5ee8 (diff)
parentfbdf1e4d175079d726124a695b584e62e0530834 (diff)
downloadvyos-1x-19effc69296911e45e848f96100ff6595571a7df.tar.gz
vyos-1x-19effc69296911e45e848f96100ff6595571a7df.zip
Merge pull request #339 from jjakob/openvpn-dir-fix
openvpn: T2283: move ccd to /run/openvpn
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index 85945ba58..66b96debe 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -666,10 +666,10 @@ def generate(openvpn):
directories = []
directories.append(f'{directory}/status')
directories.append(f'{directory}/ccd/{interface}')
- for directory in directories:
- if not os.path.exists(directory):
- os.makedirs(directory, 0o755)
- chown(directory, user, group)
+ for onedir in directories:
+ if not os.path.exists(onedir):
+ os.makedirs(onedir, 0o755)
+ chown(onedir, user, group)
# Fix file permissons for keys
fix_permissions = []