Add paccache hook, make borg exec line ignore username, change description for hook
This commit is contained in:
parent
eaf92853e9
commit
cc349b0c45
3 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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.'"
|
||||
|
|
12
pacman_hooks/paccache.hook
Normal file
12
pacman_hooks/paccache.hook
Normal 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
|
Loading…
Add table
Reference in a new issue