summaryrefslogtreecommitdiff
path: root/templates/system/package/auto-sync/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system/package/auto-sync/node.def')
-rw-r--r--templates/system/package/auto-sync/node.def7
1 files changed, 2 insertions, 5 deletions
diff --git a/templates/system/package/auto-sync/node.def b/templates/system/package/auto-sync/node.def
index 59f3e1e4..277a5fe4 100644
--- a/templates/system/package/auto-sync/node.def
+++ b/templates/system/package/auto-sync/node.def
@@ -5,11 +5,8 @@ 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 && \
+update: "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\" "
-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 && \
+delete: "sudo sh -c \"touch /etc/apt/apt.conf && \
sed -i '/APT::Periodic::Update-Package-Lists*/d' /etc/apt/apt.conf\" "