diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-09-25 15:55:26 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-09-25 15:55:26 -0700 |
commit | e9a79a249cec69fc178098d2f75db9389068510a (patch) | |
tree | 0e366094b7fecd3988c243fbbb574015e0c900c8 /templates/system/package/auto-sync/node.def | |
download | vyatta-cfg-upstream.tar.gz vyatta-cfg-upstream.zip |
initial import (from eureka /cli) plus new build system.upstream
Diffstat (limited to 'templates/system/package/auto-sync/node.def')
-rw-r--r-- | templates/system/package/auto-sync/node.def | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/system/package/auto-sync/node.def b/templates/system/package/auto-sync/node.def new file mode 100644 index 0000000..59f3e1e --- /dev/null +++ b/templates/system/package/auto-sync/node.def @@ -0,0 +1,15 @@ +# this will set APT::Periodic::Update-Package-Lists in /etc/apt/apt.conf +# apt.conf is in turn read by the apt cron file loacted in /etc/cron.daily/apt +# 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" +create: "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\" " +update: "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: "sh -c \"touch /etc/apt/apt.conf && \ +sed -i '/APT::Periodic::Update-Package-Lists*/d' /etc/apt/apt.conf\" " |