summaryrefslogtreecommitdiff
path: root/templates/system/login/radius-server
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@sydney.vyatta.com>2007-10-24 10:01:04 -0700
committerAn-Cheng Huang <ancheng@sydney.vyatta.com>2007-10-24 10:01:04 -0700
commit1229e8c6f130c62c42900f424a772d4e9c5e8ef5 (patch)
treea89f7b29d4a7e62c803f3b0306922777681f319a /templates/system/login/radius-server
parentb1fcb904eab1425d349fd7ab8d65b39c1bfb2e3f (diff)
downloadvyatta-cfg-quagga-1229e8c6f130c62c42900f424a772d4e9c5e8ef5.tar.gz
vyatta-cfg-quagga-1229e8c6f130c62c42900f424a772d4e9c5e8ef5.zip
add 'sudo' for 'system' and 'service/ssh' configuration commands.
Diffstat (limited to 'templates/system/login/radius-server')
-rw-r--r--templates/system/login/radius-server/node.def8
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/system/login/radius-server/node.def b/templates/system/login/radius-server/node.def
index d12be764..0f4ffbfe 100644
--- a/templates/system/login/radius-server/node.def
+++ b/templates/system/login/radius-server/node.def
@@ -2,13 +2,9 @@ tag:
type: ipv4
help: "Radius server authentication configuration"
# need mandatory secret. also need port & timeout (default values?)
-create: "sh -c \"touch /etc/raddb/server && \
+update: "sudo sh -c \"touch /etc/raddb/server && \
sed -i '/$(@)/d' /etc/raddb/server && \
echo \\\"$(@):$(port/@)\t$(secret/@)\t$(timeout/@)\\\" \
>> /etc/raddb/server\" "
-update: "sh -c \"touch /etc/raddb/server && \
-sed -i '/$(@)/d' /etc/raddb/server && \
-echo \\\"$(@):$(port/@)\t$(secret/@)\t$(timeout/@)\\\" \
->> /etc/raddb/server\" "
-delete: "sh -c \"touch /etc/raddb/server && \
+delete: "sudo sh -c \"touch /etc/raddb/server && \
sed -i '/$(@)/d' /etc/raddb/server\" "