summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index b1318b9ee..0c6acf4e5 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -449,6 +449,11 @@ def generate(openvpn):
if 'deleted' in openvpn or 'disable' in openvpn:
return None
+ # create client config directory on demand
+ if not os.path.exists(ccd_dir):
+ os.makedirs(ccd_dir, 0o755)
+ chown(ccd_dir, user, group)
+
# Fix file permissons for keys
fix_permissions = []