Ensure restic gets the correct permissions when it's updated
Yes it's weird to modify the system package like this, but it's very handy. See also https://restic.readthedocs.io/en/stable/080_examples.html#backing-up-your-system-without-running-restic-as-root
This commit is contained in:
9
ansible/roles/restic/files/restic-post.hook
Normal file
9
ansible/roles/restic/files/restic-post.hook
Normal file
@ -0,0 +1,9 @@
|
||||
[Trigger]
|
||||
Operation = Upgrade
|
||||
Type = Package
|
||||
Target = restic
|
||||
|
||||
[Action]
|
||||
Description = Set restic binary permissions
|
||||
When = PostTransaction
|
||||
Exec = /usr/share/libalpm/scripts/restic-post.sh
|
Reference in New Issue
Block a user