feat: add pacman hooks and update install script

This commit is contained in:
Adrian Wannenmacher 2021-02-12 01:34:13 +01:00
parent 1f33307608
commit 7282ad8025
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
4 changed files with 36 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/fish
cp ./pacman/snap-pac-uki-create.fish /usr/local/bin
cp ./src/snap-pac-uki.fish /usr/local/bin/snap-pac-uki
echo "installed creation script."
cp ./pacman/hooks/* /usr/share/libalpm/hooks/
cp ./pacman/* /usr/share/libalpm/hooks/
echo "installed pacman hooks."

View File

@ -0,0 +1,12 @@
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Performing pre UKI creation...
When = PreTransaction
Exec = /usr/local/bin/snap-pac-uki snapshots
AbortOnFail

View File

@ -0,0 +1,11 @@
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Performing post UKI creation...
When = PostTransaction
Exec = /usr/local/bin/snap-pac-uki snapshots

View File

@ -0,0 +1,11 @@
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Performing post UKI creation...
When = PostTransaction
Exec = /usr/local/bin/snap-pac-uki current