diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-13 22:52:36 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-13 22:52:36 +0200 |
commit | 24f136fe08fb28383be78016c97db236889f621d (patch) | |
tree | 6669a9501071b31eefe1f40f49b471c77408bfd5 /data/templates/ntp/override.conf.tmpl | |
parent | 7dd2249e43eeae9ae79e3e5d2e9fdac296d0edc0 (diff) | |
download | vyos-1x-24f136fe08fb28383be78016c97db236889f621d.tar.gz vyos-1x-24f136fe08fb28383be78016c97db236889f621d.zip |
ntp: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/ntp/override.conf.tmpl')
-rw-r--r-- | data/templates/ntp/override.conf.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/ntp/override.conf.tmpl b/data/templates/ntp/override.conf.tmpl index 28eb61b21..dbfdc4545 100644 --- a/data/templates/ntp/override.conf.tmpl +++ b/data/templates/ntp/override.conf.tmpl @@ -1,4 +1,4 @@ -{% set vrf_command = 'ip vrf exec ' + vrf + ' ' if vrf is defined else '' %} +{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %} [Unit] StartLimitIntervalSec=0 ConditionPathExists={{config_file}} @@ -6,7 +6,7 @@ After=vyos-router.service [Service] ExecStart= -ExecStart={{vrf_command}}/usr/sbin/ntpd -g -p {{config_file | replace('.conf', '.pid') }} -c {{config_file}} -u ntp:ntp +ExecStart={{vrf_command}}/usr/sbin/ntpd -g -p {{ config_file | replace('.conf', '.pid') }} -c {{ config_file }} -u ntp:ntp PIDFile= PIDFile={{config_file | replace('.conf', '.pid') }} Restart=always |