You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
385 B
14 lines
385 B
2 years ago
|
[Trigger]
|
||
|
Type=Package
|
||
|
Operation=Install
|
||
|
Operation=Upgrade
|
||
|
Operation=Remove
|
||
|
Target=gitea
|
||
|
|
||
|
[Action]
|
||
|
Description=Making ZFS snapshot for gitea...
|
||
|
Depends=zfs-utils
|
||
|
When=PreTransaction
|
||
|
Exec=/usr/bin/sh -c "/usr/bin/zfs snapshot -r $(/usr/bin/findmnt -n /var/lib/gitea | /usr/bin/awk '{print $2}')@$(/bin/date +%Y-%m-%d)_v$(/usr/bin/pacman -Q gitea | /bin/sed 's/gitea //g')"
|
||
|
NeedsTargets
|