summaryrefslogtreecommitdiff
path: root/templates/system/package/auto-sync/node.def
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:59:02 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:59:02 -0800
commit622bbf801bd435a3848c669ff2c0e9090cd2bb4e (patch)
tree328d04410e8fed64e6a8b25abdf58f199d916c2d /templates/system/package/auto-sync/node.def
parentc2c002021eab0adff7e4d268535170658a1b0c6c (diff)
downloadvyatta-cfg-quagga-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.tar.gz
vyatta-cfg-quagga-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.zip
convert templates to new syntax
Diffstat (limited to 'templates/system/package/auto-sync/node.def')
-rw-r--r--templates/system/package/auto-sync/node.def10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/system/package/auto-sync/node.def b/templates/system/package/auto-sync/node.def
index 277a5fe4..9300848e 100644
--- a/templates/system/package/auto-sync/node.def
+++ b/templates/system/package/auto-sync/node.def
@@ -3,10 +3,10 @@
# the /etc/crontab file must have the daily line for daily to be run
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"
-update: "sudo sh -c \"touch /etc/apt/apt.conf && \
+help: Update the the repository cache every n days. 0 disables auto-update.
+syntax:expression: $VAR(@) >= 0 && $VAR(@) < 32 ; "auto-sync must be between 0 and 32 days"
+update:expression: "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\" "
-delete: "sudo sh -c \"touch /etc/apt/apt.conf && \
+echo \\\"APT::Periodic::Update-Package-Lists \\\"$VAR(@)\\\";\\\" >> /etc/apt/apt.conf\" "
+delete:expression: "sudo sh -c \"touch /etc/apt/apt.conf && \
sed -i '/APT::Periodic::Update-Package-Lists*/d' /etc/apt/apt.conf\" "