You are not logged in.
Is there a way to have transaction dependent variables?
I currently have the following hook:
[Trigger]
Operation = Upgrade
Type = Package
Target = postfix
[Action]
Description = Restart postfix after upgrade
When = PostTransaction
Exec = /usr/bin/systemctl restart postfix
Depends = postfix
I'd like to add more related packages to the same hook; something like this:
[Trigger]
Operation = Upgrade
Type = Package
Target = postfix
Target = opendkim
Target = opendkim-ed25519
Target = opendmarc
Target = spamassassin
Target = dovecot
Target = postfwd
[Action]
Description = Restart email-related services after upgrade
When = PostTransaction
Exec = /usr/bin/systemctl restart $specific-package-that-got-upgraded
Depends = postfix opendkim opendmarc spamassassin dovecot postfwd
man 5 alpm-hooks
does not seem to say anything like this is possible, but thought I'd ask here anyway.
Offline
How about the `NeedsTargets` option?
Sometimes I seem a bit harsh — don’t get offended too easily!
Offline