[cpp-linbuild] 04/04: Restart httpd.service consistently in scriptlets
Codeberg
noreply at shibboleth.net
Sun Feb 15 00:13:02 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository cpp-linbuild.
View the commit online:
https://codeberg.org/Shibboleth/cpp-linbuild/commit/273a11f19f1f436becd54447ec00d31142554930
commit 273a11f19f1f436becd54447ec00d31142554930
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Sat Feb 14 22:24:33 2026 +0000
Restart httpd.service consistently in scriptlets
---
common/SPECS/shibboleth-sp.spec | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/common/SPECS/shibboleth-sp.spec b/common/SPECS/shibboleth-sp.spec
index 5b9b697..b9453db 100644
--- a/common/SPECS/shibboleth-sp.spec
+++ b/common/SPECS/shibboleth-sp.spec
@@ -77,20 +77,16 @@ fi
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
-%preun
-# On final removal, restart Apache if running.
-if [ $1 -eq 0 ] ; then
+%post
+# On initial install, restart Apache if running.
+if [ $1 -eq 1 ] ; then
%{!?_without_builtinapache:/usr/bin/systemctl try-restart httpd.service 1>/dev/null}
-exit 0
fi
-exit 0
%postun
-# On upgrade, restart Apache if running.
-if [ $1 -ge 1 ] ; then
- %{!?_without_builtinapache:/usr/bin/systemctl try-restart httpd.service 1>/dev/null}
+# On upgrade/downgrade and final removal, restart Apache
+%{!?_without_builtinapache:/usr/bin/systemctl try-restart httpd.service 1>/dev/null}
exit 0
-fi
%posttrans
exit 0
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list