From 4f07f5b776244a6185c6ee2a5e351b314739db30 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Fri, 9 Nov 2018 12:47:25 +0100 Subject: [PATCH] Improved cleanup handling. --- systemd/.config/systemd/user/pikaur-cleanup.service | 2 ++ systemd/.config/systemd/user/tmpfiles-cleanup.service | 1 + systemd/.config/tmpfiles/tmpfiles.conf | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/systemd/.config/systemd/user/pikaur-cleanup.service b/systemd/.config/systemd/user/pikaur-cleanup.service index a77969d..f0ac742 100644 --- a/systemd/.config/systemd/user/pikaur-cleanup.service +++ b/systemd/.config/systemd/user/pikaur-cleanup.service @@ -5,3 +5,5 @@ Description=Clean up locally built pikaur packages Type=oneshot ExecStart=/usr/bin/paccache -c %h/.cache/pikaur/pkg -r --nocolor -v ExecStart=/usr/bin/paccache -c %h/.cache/pikaur/pkg -r --nocolor -v -u -k0 +ExecStart=/usr/bin/paccache -c %h/.cache/pacman/pkgs -r --nocolor -v +ExecStart=/usr/bin/paccache -c %h/.cache/pacman/pkgs -r --nocolor -v -u -k0 diff --git a/systemd/.config/systemd/user/tmpfiles-cleanup.service b/systemd/.config/systemd/user/tmpfiles-cleanup.service index ce73c28..ec18d87 100644 --- a/systemd/.config/systemd/user/tmpfiles-cleanup.service +++ b/systemd/.config/systemd/user/tmpfiles-cleanup.service @@ -4,6 +4,7 @@ Description=Cleanup of temporary files [Service] Type=oneshot ExecStart=/usr/bin/systemd-tmpfiles --root=%h --clean %h/.config/tmpfiles/tmpfiles.conf +ExecStart=/usr/bin/find %h/.cache/pacman/sources -type f -maxdepth 1 -delete [Install] WantedBy=default.target diff --git a/systemd/.config/tmpfiles/tmpfiles.conf b/systemd/.config/tmpfiles/tmpfiles.conf index b34c313..41f6e55 100644 --- a/systemd/.config/tmpfiles/tmpfiles.conf +++ b/systemd/.config/tmpfiles/tmpfiles.conf @@ -2,5 +2,4 @@ e /.cache/spotify - - - 30d - e /.cache/chromium - - - 30d - e /.cache/mozilla - - - 30d - - e /.cache/pacman/sources - - - 30d - e /Downloads - - - 7d -