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/archive/node.def | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

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

diff --git a/templates/system/syslog/global/archive/node.def b/templates/system/syslog/global/archive/node.def
index dcfc2446..aefdb2d4 100644
--- a/templates/system/syslog/global/archive/node.def
+++ b/templates/system/syslog/global/archive/node.def
@@ -1,8 +1,6 @@
 help: "Configure log file size and rotation characteristics"
 # need mandatory files & size
-create: "sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
+update: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
 '$(files/@)' '$(size/@)' 1\" "
-update: "sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
-'$(files/@)' '$(size/@)' 1\" "
-delete: "sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
+delete: "sudo sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
 '$(files/@)' '$(size/@)' 0\" "
-- 
cgit v1.2.3

