Re: Fedora 34 Change: ntp replacement (Self-Contained Change)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux