From 1229e8c6f130c62c42900f424a772d4e9c5e8ef5 Mon Sep 17 00:00:00 2001
From: An-Cheng Huang <ancheng@sydney.vyatta.com>
Date: Wed, 24 Oct 2007 10:01:04 -0700
Subject: add 'sudo' for 'system' and 'service/ssh' configuration commands.

---
 templates/system/syslog/global/facility/node.def | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'templates/system/syslog/global/facility/node.def')

diff --git a/templates/system/syslog/global/facility/node.def b/templates/system/syslog/global/facility/node.def
index cd037f6a..1cfb8223 100644
--- a/templates/system/syslog/global/facility/node.def
+++ b/templates/system/syslog/global/facility/node.def
@@ -1,11 +1,8 @@
 tag:
 type: txt
 help: "Configure facility for system logging"
-create: "sh -c \"LVL=`echo -n $(level/@) | tr '[a-z]' '[A-Z]'` && \
+update: "sudo sh -c \"LVL=`echo -n $(level/@) | tr '[a-z]' '[A-Z]'` && \
 /opt/vyatta/sbin/vyatta_update_syslog.pl '' '\\/var\\/log\\/messages' \
 \\\"$(@).\\\\\$LVL\t/var/log/messages \n\\\"\" "
-update: "sh -c \"LVL=`echo -n $(level/@) | tr '[a-z]' '[A-Z]'` && \
-/opt/vyatta/sbin/vyatta_update_syslog.pl '' '\\/var\\/log\\/messages' \
-\\\"$(@).\\\\\$LVL\t/var/log/messages \n\\\"\" "
-delete: "sh -c \"/opt/vyatta/sbin/vyatta_update_syslog.pl \
+delete: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_syslog.pl \
 '' '\\/var\\/log\\/messages' '*.warning\t/var/log/messages \n'\" "
-- 
cgit v1.2.3

