From cb544fc3e372448e3ed098f09add767d6f449b47 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 4 Nov 2020 19:42:32 +0100 Subject: openvpn: T3046: create client config dir on-demand This commit partially reverts commit eb1ed5e518 ("openvpn: T2994: re-add ifconfig-pool statement in server config"). --- src/conf_mode/interfaces-openvpn.py | 5 +++++ 1 file changed, 5 insertions(+) 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 = [] -- cgit v1.2.3