From b668e62f6fc94eaec465be512ec1bf27b4117475 Mon Sep 17 00:00:00 2001 From: Veiko Aasa Date: Sun, 1 Mar 2020 11:20:23 +0200 Subject: [PATCH] upgrades: Clean apt cache every week Closes #973 Signed-off-by: Veiko Aasa Reviewed-by: Sunil Mohan Adapa --- plinth/modules/upgrades/data/etc/apt/apt.conf.d/20freedombox | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plinth/modules/upgrades/data/etc/apt/apt.conf.d/20freedombox b/plinth/modules/upgrades/data/etc/apt/apt.conf.d/20freedombox index 7f5c6dce2..574055587 100644 --- a/plinth/modules/upgrades/data/etc/apt/apt.conf.d/20freedombox +++ b/plinth/modules/upgrades/data/etc/apt/apt.conf.d/20freedombox @@ -6,3 +6,6 @@ APT::Update::Post-Invoke-Success { "/usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedombox.Service --object-path /org/freedombox/Service/PackageHandler --timeout 10 --method org.freedombox.Service.PackageHandler.CacheUpdated 2> /dev/null > /dev/null; /bin/echo > /dev/null"; }; + +// Clean apt cache every 7 days +APT::Periodic::CleanInterval "7";