From fbdf1e4d175079d726124a695b584e62e0530834 Mon Sep 17 00:00:00 2001 From: jjakob Date: Mon, 13 Apr 2020 12:38:40 +0200 Subject: openvpn: T2283: move ccd to /run/openvpn Commit a457c9d2 moved the config directory to /run/openvpn but didn't move the client-config-dir in the template. --- src/conf_mode/interfaces-openvpn.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/conf_mode/interfaces-openvpn.py') 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 = [] -- cgit v1.2.3