From 622bbf801bd435a3848c669ff2c0e9090cd2bb4e Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 31 Jan 2008 07:59:02 -0800 Subject: convert templates to new syntax --- templates/system/package/auto-sync/node.def | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'templates/system/package/auto-sync') 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\" " -- cgit v1.2.3