zfs-pacman-hook/pacman-zfs-snapshot-remove.hook

13 lines
262 B
Plaintext
Raw Normal View History

2023-03-05 08:15:16 +01:00
[Trigger]
Operation = Remove
Type = Package
Target = *
[Action]
Description = Create ZFS snapshot(s)
2023-03-05 08:15:16 +01:00
When = PreTransaction
Exec = /bin/sh -c 'while read -r f; do echo "$f"; done | /usr/local/bin/pacman-zfs-snapshot remove'
Depends = jq
2023-03-05 08:15:16 +01:00
AbortOnFail
NeedsTargets