summaryrefslogtreecommitdiff
path: root/templates/system/ntp-server/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system/ntp-server/node.def')
-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 \