mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-15 09:51:21 +00:00
Closes #973 Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
12 lines
610 B
Plaintext
12 lines
610 B
Plaintext
// This configuration is installed by FreedomBox.
|
|
//
|
|
// When Apt's cache is updated (i.e. apt-cache update) notify FreedomBox service
|
|
// via it's D-Bus API. FreedomBox may then handle upgrade of some packages.
|
|
//
|
|
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";
|