summaryrefslogtreecommitdiff
path: root/templates/system/ntp-server
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:59:02 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:59:02 -0800
commit622bbf801bd435a3848c669ff2c0e9090cd2bb4e (patch)
tree328d04410e8fed64e6a8b25abdf58f199d916c2d /templates/system/ntp-server
parentc2c002021eab0adff7e4d268535170658a1b0c6c (diff)
downloadvyatta-cfg-quagga-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.tar.gz
vyatta-cfg-quagga-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.zip
convert templates to new syntax
Diffstat (limited to 'templates/system/ntp-server')
-rw-r--r--templates/system/ntp-server/node.def14
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/system/ntp-server/node.def b/templates/system/ntp-server/node.def
index b121d3c3..0468d7e8 100644
--- a/templates/system/ntp-server/node.def
+++ b/templates/system/ntp-server/node.def
@@ -1,14 +1,14 @@
multi:
type: txt
-help: "Name or IP address of NTP server"
-update: "sudo sh -c \"touch /etc/ntp.conf && \
-if ! grep -q 'server.*$(@)' /etc/ntp.conf; then \
- echo \\\"server $(@)\\\" >> /etc/ntp.conf && \
+help: Name or IP address of NTP server
+update:expression: "sudo sh -c \"touch /etc/ntp.conf && \
+if ! grep -q 'server.*$VAR(@)' /etc/ntp.conf; then \
+ echo \\\"server $VAR(@)\\\" >> /etc/ntp.conf && \
/usr/sbin/invoke-rc.d ntp restart; \
fi\" "
-delete: "sudo sh -c \"touch /etc/ntp.conf && \
-if grep -q 'server.*$(@)' /etc/ntp.conf; then \
- sed -i '/server $(@)/d' /etc/ntp.conf && \
+delete:expression: "sudo sh -c \"touch /etc/ntp.conf && \
+if grep -q 'server.*$VAR(@)' /etc/ntp.conf; then \
+ sed -i '/server $VAR(@)/d' /etc/ntp.conf && \
if grep -q '^server ' /etc/ntp.conf; then \
/usr/sbin/invoke-rc.d ntp restart; \
else \