diff options
author | An-Cheng Huang <ancheng@sydney.vyatta.com> | 2007-10-24 10:01:04 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@sydney.vyatta.com> | 2007-10-24 10:01:04 -0700 |
commit | 1229e8c6f130c62c42900f424a772d4e9c5e8ef5 (patch) | |
tree | a89f7b29d4a7e62c803f3b0306922777681f319a /templates/system/package | |
parent | b1fcb904eab1425d349fd7ab8d65b39c1bfb2e3f (diff) | |
download | vyatta-cfg-quagga-1229e8c6f130c62c42900f424a772d4e9c5e8ef5.tar.gz vyatta-cfg-quagga-1229e8c6f130c62c42900f424a772d4e9c5e8ef5.zip |
add 'sudo' for 'system' and 'service/ssh' configuration commands.
Diffstat (limited to 'templates/system/package')
-rw-r--r-- | templates/system/package/auto-sync/node.def | 7 | ||||
-rw-r--r-- | templates/system/package/repository/node.def | 6 |
2 files changed, 5 insertions, 8 deletions
diff --git a/templates/system/package/auto-sync/node.def b/templates/system/package/auto-sync/node.def index 59f3e1e4..277a5fe4 100644 --- a/templates/system/package/auto-sync/node.def +++ b/templates/system/package/auto-sync/node.def @@ -5,11 +5,8 @@ type: u32 default: 1 help: "Update the the repository cache every n days. 0 disables auto-update." syntax: $(@) >= 0 && $(@) < 32 ; "auto-sync must be between 0 and 32 days" -create: "sh -c \"touch /etc/apt/apt.conf && \ +update: "sudo sh -c \"touch /etc/apt/apt.conf && \ sed -i '/APT::Periodic::Update-Package-Lists*/d' /etc/apt/apt.conf && \ echo \\\"APT::Periodic::Update-Package-Lists \\\"$(@)\\\";\\\" >> /etc/apt/apt.conf\" " -update: "sh -c \"touch /etc/apt/apt.conf && \ -sed -i '/APT::Periodic::Update-Package-Lists*/d' /etc/apt/apt.conf && \ -echo \\\"APT::Periodic::Update-Package-Lists \\\"$(@)\\\";\\\" >> /etc/apt/apt.conf\" " -delete: "sh -c \"touch /etc/apt/apt.conf && \ +delete: "sudo sh -c \"touch /etc/apt/apt.conf && \ sed -i '/APT::Periodic::Update-Package-Lists*/d' /etc/apt/apt.conf\" " 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\" " |