From Fedora Project Wiki
Stardust85 (talk | contribs) (why postun?) |
Stardust85 (talk | contribs) (Probable explanation) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Is there a particular reason to require %{_sbindir}/update-alternatives instead if chkconfig? I thought generally we preferred the latter? [[User:Petersen|Petersen]] 10:18, 14 November 2011 (UTC) | Is there a particular reason to require %{_sbindir}/update-alternatives instead if chkconfig? I thought generally we preferred the latter? [[User:Petersen|Petersen]] 10:18, 14 November 2011 (UTC) | ||
What is the purpose of %postun in the sendmail example? I mean this: | What is the purpose of %postun in the sendmail example? I mean this: | ||
Line 12: | Line 13: | ||
</nowiki> | </nowiki> | ||
--[[User:Stardust85|Stardust85]] ([[User talk:Stardust85|talk]]) 14:56, 21 July 2016 (UTC) | --[[User:Stardust85|Stardust85]] ([[User talk:Stardust85|talk]]) 14:56, 21 July 2016 (UTC) | ||
: From #fedora-devel: rdieter_work: stardust: I'm going to speculate that it's a workaround for some historical problem/bug for not getting the alternative set properly --[[User:Stardust85|Stardust85]] ([[User talk:Stardust85|talk]]) 15:29, 21 July 2016 (UTC) |
Latest revision as of 15:29, 21 July 2016
Is there a particular reason to require %{_sbindir}/update-alternatives instead if chkconfig? I thought generally we preferred the latter? Petersen 10:18, 14 November 2011 (UTC)
What is the purpose of %postun in the sendmail example? I mean this:
%postun if [ "$1" -ge "1" ]; then if [ "`readlink %{_sysconfdir}/alternatives/mta`" == "%{_sbindir}/sendmail.sendmail" ]; then %{_sbindir}/alternatives --set mta %{_sbindir}/sendmail.sendmail fi fi
--Stardust85 (talk) 14:56, 21 July 2016 (UTC)
- From #fedora-devel: rdieter_work: stardust: I'm going to speculate that it's a workaround for some historical problem/bug for not getting the alternative set properly --Stardust85 (talk) 15:29, 21 July 2016 (UTC)