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/login/radius-server/node.def | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/system/login/radius-server/node.def') diff --git a/templates/system/login/radius-server/node.def b/templates/system/login/radius-server/node.def index 0f4ffbfe..6d87890c 100644 --- a/templates/system/login/radius-server/node.def +++ b/templates/system/login/radius-server/node.def @@ -1,10 +1,10 @@ tag: type: ipv4 -help: "Radius server authentication configuration" +help: Radius server authentication configuration # need mandatory secret. also need port & timeout (default values?) -update: "sudo sh -c \"touch /etc/raddb/server && \ -sed -i '/$(@)/d' /etc/raddb/server && \ -echo \\\"$(@):$(port/@)\t$(secret/@)\t$(timeout/@)\\\" \ +update:expression: "sudo sh -c \"touch /etc/raddb/server && \ +sed -i '/$VAR(@)/d' /etc/raddb/server && \ +echo \\\"$VAR(@):$VAR(port/@)\t$VAR(secret/@)\t$VAR(timeout/@)\\\" \ >> /etc/raddb/server\" " -delete: "sudo sh -c \"touch /etc/raddb/server && \ -sed -i '/$(@)/d' /etc/raddb/server\" " +delete:expression: "sudo sh -c \"touch /etc/raddb/server && \ +sed -i '/$VAR(@)/d' /etc/raddb/server\" " -- cgit v1.2.3