feat: ✨ add pacman hooks and update install script
This commit is contained in:
parent
1f33307608
commit
7282ad8025
@ -1,6 +1,6 @@
|
|||||||
#!/bin/fish
|
#!/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."
|
echo "installed creation script."
|
||||||
|
|
||||||
cp ./pacman/hooks/* /usr/share/libalpm/hooks/
|
cp ./pacman/* /usr/share/libalpm/hooks/
|
||||||
echo "installed pacman hooks."
|
echo "installed pacman hooks."
|
||||||
|
12
pacman/01_snap-pac-uki_pre.hook
Normal file
12
pacman/01_snap-pac-uki_pre.hook
Normal 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
|
11
pacman/zzy_snap-pac-uki_post.hook
Normal file
11
pacman/zzy_snap-pac-uki_post.hook
Normal 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
|
11
pacman/zzz_snap-pac-uki_current.hook
Normal file
11
pacman/zzz_snap-pac-uki_current.hook
Normal 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
|
Loading…
Reference in New Issue
Block a user