diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-11-04 19:42:32 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-11-04 19:42:32 +0100 |
commit | cb544fc3e372448e3ed098f09add767d6f449b47 (patch) | |
tree | afa0b60217df6f4b30c513b3e7b5d684a1367044 /src/conf_mode/interfaces-openvpn.py | |
parent | 620271eca13b3535472243f98bca766ed6ec19ed (diff) | |
download | vyos-1x-cb544fc3e372448e3ed098f09add767d6f449b47.tar.gz vyos-1x-cb544fc3e372448e3ed098f09add767d6f449b47.zip |
openvpn: T3046: create client config dir on-demand
This commit partially reverts commit eb1ed5e518 ("openvpn: T2994: re-add
ifconfig-pool statement in server config").
Diffstat (limited to 'src/conf_mode/interfaces-openvpn.py')
-rwxr-xr-x | src/conf_mode/interfaces-openvpn.py | 5 |
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 = [] |