From 622bbf801bd435a3848c669ff2c0e9090cd2bb4e Mon Sep 17 00:00:00 2001
From: An-Cheng Huang <ancheng@vyatta.com>
Date: Thu, 31 Jan 2008 07:59:02 -0800
Subject: convert templates to new syntax

---
 templates/service/telnet/allow-root/node.def | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'templates/service/telnet/allow-root/node.def')

diff --git a/templates/service/telnet/allow-root/node.def b/templates/service/telnet/allow-root/node.def
index 9c3ff97d..d1a25f4e 100644
--- a/templates/service/telnet/allow-root/node.def
+++ b/templates/service/telnet/allow-root/node.def
@@ -1,19 +1,19 @@
 type: bool
 default: false
-help: "Enable/disable root login"
-update: " \
+help: Enable/disable root login
+update:expression: " \
   if ! env | grep -q SSH_TTY=; then \
     if [[ \"`tty`\" == /dev/pts/* ]]; then \
       echo \"Please configure telnet settings via ssh or console.\"; \
       exit 1; \
     fi; \
   fi; \
-  if [ \"$(@)\" == \"true\" ]; then \
+  if [ \"$VAR(@)\" == \"true\" ]; then \
     sudo mv -f /etc/securetty /etc/securetty.allow-root >&/dev/null; \
   else
     sudo mv -f /etc/securetty.allow-root /etc/securetty >&/dev/null; \
   fi ; /bin/true"
-delete: " \
+delete:expression: " \
   if ! env | grep -q SSH_TTY=; then \
     if [[ \"`tty`\" == /dev/pts/* ]]; then \
       echo \"Please configure telnet settings via ssh or console.\"; \
-- 
cgit v1.2.3

