On Mon, Dec 07, 2020 at 10:47:31AM +0000, Zbigniew Jędrzejewski-Szmek wrote:
> Since the plan it to Obsolete the old package, I think you should trigger
> on the removal of it:
> %triggerun ntp <= ... 
> 
> # copy service enablement from the old name to the new name
> if systemctl is-enabled -q ntpd 2>/dev/null; then
>   systemctl enable ntpsecd # if the name is different...
> fi

More magic is needed. The service name is the same (ntpd). The ntpsec
post disables the service before the triggerun runs. I suspect the
original state needs to be captured first in a triggerprein or pre
scriptlet.

-- 
Miroslav Lichvar
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to