summaryrefslogtreecommitdiff
path: root/templates/system/package/repository/node.def
diff options
context:
space:
mode:
authorrbalocca <rbalocca@vyatta.com>2008-03-10 16:27:56 -0700
committerrbalocca <rbalocca@vyatta.com>2008-03-10 16:27:56 -0700
commit1c352fd2c2fe87d398e288f536cf9178406ce749 (patch)
treee8f5f9db43d1bdd07a0b86612b0bf01291191de0 /templates/system/package/repository/node.def
parent6885004534d18d087a2ec8810cbeacb163efdaad (diff)
parente7b2082e077f2ac4625f8a7e2a45749b3ce56140 (diff)
downloadvyatta-cfg-quagga-1c352fd2c2fe87d398e288f536cf9178406ce749.tar.gz
vyatta-cfg-quagga-1c352fd2c2fe87d398e288f536cf9178406ce749.zip
Merge branch 'glendale' into hollywood
Diffstat (limited to 'templates/system/package/repository/node.def')
-rw-r--r--templates/system/package/repository/node.def17
1 files changed, 11 insertions, 6 deletions
diff --git a/templates/system/package/repository/node.def b/templates/system/package/repository/node.def
index e07967ee..d2e4cf38 100644
--- a/templates/system/package/repository/node.def
+++ b/templates/system/package/repository/node.def
@@ -1,11 +1,16 @@
tag:
+
type: txt
-help: Name describing the repository
+
+help: Name a debian archive
+
commit:expression: $VAR(./url/) != ""; "Must configure the repository URL"
commit:expression: $VAR(./distribution/) != ""; "Must configure the repository distribution"
-commit:expression: $VAR(./components/) != ""; "Must configure the repository component"
-update:expression: "sudo sh -c \"touch /etc/apt/sources.list && \
+commit:expression: $VAR(./components/) != ""; "Must configure the repository components"
+
+update: sudo sh -c "touch /etc/apt/sources.list && \
sed -i '\\!# $VAR(@) #!d' /etc/apt/sources.list && \
-echo \\\"deb $VAR(url/@)/ $VAR(distribution/@) $VAR(components/@) # $VAR(@) #\\\" >> /etc/apt/sources.list\" "
-delete:expression: "sudo sh -c \"touch /etc/apt/sources.list && \
-sed -i '\\!# $VAR(@) #!d' /etc/apt/sources.list\" "
+echo \"deb $VAR(url/@)/ $VAR(distribution/@) $VAR(components/@) # $VAR(@) #\" >> /etc/apt/sources.list"
+
+delete: sudo sh -c "touch /etc/apt/sources.list && \
+sed -i '\\!# $VAR(@) #!d' /etc/apt/sources.list"