summaryrefslogtreecommitdiff
path: root/src/conf_mode/vpn_pptp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-27 19:38:53 +0200
committerGitHub <noreply@github.com>2020-04-27 19:38:53 +0200
commit536fd31f868a19ccbea72a637cb6b984fa368ce9 (patch)
tree67f2740ee48df38c8dacbcebdd901af129f4f8a8 /src/conf_mode/vpn_pptp.py
parent9bdc3dca0d1b2cec3422b08c186af80ac2aa665e (diff)
parent2bf12b579e083a8b527d3202ced365b8adf32625 (diff)
downloadvyos-1x-536fd31f868a19ccbea72a637cb6b984fa368ce9.tar.gz
vyos-1x-536fd31f868a19ccbea72a637cb6b984fa368ce9.zip
Merge pull request #381 from thomas-mangin/T2388
template: T2388: move mkdir/chmod/chown within render()
Diffstat (limited to 'src/conf_mode/vpn_pptp.py')
-rwxr-xr-xsrc/conf_mode/vpn_pptp.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/conf_mode/vpn_pptp.py b/src/conf_mode/vpn_pptp.py
index 046fc8f9c..085c9c2c6 100755
--- a/src/conf_mode/vpn_pptp.py
+++ b/src/conf_mode/vpn_pptp.py
@@ -247,10 +247,6 @@ def generate(pptp):
if not pptp:
return None
- dirname = os.path.dirname(pptp_conf)
- if not os.path.exists(dirname):
- os.mkdir(dirname)
-
render(pptp_conf, 'accel-ppp/pptp.config.tmpl', pptp, trim_blocks=True)
if pptp['local_users']: