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/package/repository/node.def | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'templates/system/package/repository/node.def')

diff --git a/templates/system/package/repository/node.def b/templates/system/package/repository/node.def
index 104089a9..4fd6d587 100644
--- a/templates/system/package/repository/node.def
+++ b/templates/system/package/repository/node.def
@@ -4,11 +4,11 @@ help: "Repository name"
 # bug 1847: remove the previous repo line before adding new line.
 # need to prohibit '!' in repo name (sed delimiter)
 syntax: pattern $(@) "^[^!]+$" ; "Do not use '!' in repository name"
-create: "sh -c \"touch /etc/apt/sources.list && \
+create: "sudo sh -c \"touch /etc/apt/sources.list && \
 sed -i '\\!/ $(@) !d' /etc/apt/sources.list && \
 echo \\\"deb $(url/@)/ $(@) $(component/@)\\\" >> /etc/apt/sources.list\" "
-update: "sh -c \"touch /etc/apt/sources.list && \
+update: "sudo sh -c \"touch /etc/apt/sources.list && \
 sed -i '\\!/ $(@) !d' /etc/apt/sources.list && \
 echo \\\"deb $(url/@)/ $(@) $(component/@)\\\" >> /etc/apt/sources.list\" "
-delete: "sh -c \"touch /etc/apt/sources.list && \
+delete: "sudo sh -c \"touch /etc/apt/sources.list && \
 sed -i '\\! $(@) $(component/@)!d' /etc/apt/sources.list\" "
-- 
cgit v1.2.3

