summaryrefslogtreecommitdiff
path: root/templates/system/package/repository/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-12 16:38:30 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-12 16:38:30 -0700
commitfc98c09cb983d50f49f8695af951e1e8968c7057 (patch)
treefd4bde7d1362983eeb348c30a82a7139f5488b90 /templates/system/package/repository/node.def
parent8d636c5db6e1395c01f4be01796c8dbed3a9777e (diff)
downloadvyatta-cfg-quagga-fc98c09cb983d50f49f8695af951e1e8968c7057.tar.gz
vyatta-cfg-quagga-fc98c09cb983d50f49f8695af951e1e8968c7057.zip
Change update to create on multi-nodes
Diffstat (limited to 'templates/system/package/repository/node.def')
-rw-r--r--templates/system/package/repository/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/system/package/repository/node.def b/templates/system/package/repository/node.def
index b2f0349f..17d5d162 100644
--- a/templates/system/package/repository/node.def
+++ b/templates/system/package/repository/node.def
@@ -8,7 +8,7 @@ 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 components"
-update: sudo bash -c "touch /etc/apt/sources.list && \
+create: sudo bash -c "touch /etc/apt/sources.list && \
sed -i '\\!# $VAR(@) #!d' /etc/apt/sources.list && \
echo \"deb $VAR(url/@) $VAR(distribution/@) $VAR(components/@) # $VAR(@) #\" >> /tmp/$$-sources.list && \
if [ $VAR(password/@) ] || [ $VAR(username/@) ]; \