diff options
author | rbalocca <rbalocca@vyatta.com> | 2008-03-07 17:28:41 -0800 |
---|---|---|
committer | rbalocca <rbalocca@vyatta.com> | 2008-03-07 17:28:41 -0800 |
commit | 38063621a29910b631561ecce6e5b524b09233e4 (patch) | |
tree | 0322203dc9ef3ab61cdddd2ec3c9648021e60e78 | |
parent | 5fe4e9633b235cbc757e4d2340112f7ff5e41ce1 (diff) | |
download | vyatta-cfg-system-38063621a29910b631561ecce6e5b524b09233e4.tar.gz vyatta-cfg-system-38063621a29910b631561ecce6e5b524b09233e4.zip |
Improve the package repository template
-rw-r--r-- | templates/system/package/repository/node.def | 17 |
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" |