summaryrefslogtreecommitdiff
path: root/data/templates/openvpn/service-override.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-13 22:51:19 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-13 22:51:19 +0200
commit2b066e2cb8fe5340c3f32e4c29c75d4f3282363f (patch)
tree14e7465716f30f08f3a76f0822e80b1aa89a7bfd /data/templates/openvpn/service-override.conf.tmpl
parent4f8ae0d3d51b62caeec856386844074f38935b87 (diff)
downloadvyos-1x-2b066e2cb8fe5340c3f32e4c29c75d4f3282363f.tar.gz
vyos-1x-2b066e2cb8fe5340c3f32e4c29c75d4f3282363f.zip
openvpn: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/openvpn/service-override.conf.tmpl')
-rw-r--r--data/templates/openvpn/service-override.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/openvpn/service-override.conf.tmpl b/data/templates/openvpn/service-override.conf.tmpl
index 069bdbd08..cba652223 100644
--- a/data/templates/openvpn/service-override.conf.tmpl
+++ b/data/templates/openvpn/service-override.conf.tmpl
@@ -1,7 +1,7 @@
[Service]
ExecStart=
ExecStart=/usr/sbin/openvpn --daemon openvpn-%i --config %i.conf --status %i.status 30 --writepid %i.pid
-{%- if openvpn_option is defined and openvpn_option is not none %}
+{%- if openvpn_option is vyos_defined %}
{% for option in openvpn_option %}
{# Remove the '--' prefix from variable if it is presented #}
{% if option.startswith('--') %}