From 622bbf801bd435a3848c669ff2c0e9090cd2bb4e Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 31 Jan 2008 07:59:02 -0800 Subject: convert templates to new syntax --- templates/system/ntp-server/node.def | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'templates/system/ntp-server') 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 \ -- cgit v1.2.3