Add paccache hook, make borg exec line ignore username, change description for hook

This commit is contained in:
flyingscorpio@arch-desktop 2020-10-27 15:15:00 +01:00
parent eaf92853e9
commit cc349b0c45
3 changed files with 14 additions and 2 deletions

View file

@ -8,5 +8,5 @@ Target = *
[Action]
Description = Borg backup
When = PreTransaction
Exec = /bin/bash /home/flyingscorpio/SetupCockpit/borg_backup.sh
Exec = /bin/bash -c "/home/*/SetupCockpit/borg_backup.sh"
Depends = borg

View file

@ -6,6 +6,6 @@ Type = Package
Target = *
[Action]
Description = Notify if a transaction orphaned a package
Description = Checking if a transaction orphaned a package...
When = PostTransaction
Exec = /usr/bin/bash -c "/usr/bin/pacman -Qtd || /usr/bin/echo '=> None found.'"

View file

@ -0,0 +1,12 @@
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Description = Cleaning the pacman cache...
When = PostTransaction
Exec = /usr/bin/paccache -rvk2
Depends = pacman-contrib