public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/web-assets] rawhide: Fix restarting systemd services
@ 2026-09-02 11:18
0 siblings, 0 replies; only message in thread
From: @ 2026-09-02 11:18 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/web-assets
Branch : rawhide
Commit : 1e392f15404f2f94e49bc3617d5a75023c8ef0eb
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-09-02T13:12:43+02:00
Stats : +8/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/web-assets/c/1e392f15404f2f94e49bc3617d5a75023c8ef0eb?branch=rawhide
Log:
Fix restarting systemd services
The scriptlets executed nonexistent commands. From dnf5.log:
2024-09-04T08:46:43+0000 [9031] INFO RPM callback start post-install scriptlet "web-assets-httpd-0:5-22.fc41.noarch"
2024-09-04T08:46:43+0000 [9031] INFO [scriptlet] /var/tmp/rpm-tmp.dopAwP: line 1: reload-or-try-restart: command not found
2024-09-04T08:46:43+0000 [9031] INFO RPM callback stop post-install scriptlet "web-assets-httpd-0:5-22.fc41.noarch" return code 0
---
diff --git a/web-assets.spec b/web-assets.spec
index d08fae9..4beba56 100644
--- a/web-assets.spec
+++ b/web-assets.spec
@@ -3,7 +3,7 @@
Name: web-assets
Version: 5
-Release: 26%{?dist}
+Release: 27%{?dist}
Summary: A simple framework for bits pushed to browsers
License: MIT
URL: https://fedoraproject.org/wiki/User:Patches/PackagingDrafts/Web_Assets
@@ -81,18 +81,18 @@ install -Dpm0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/nginx/default.d/web-asset
%if %{with httpd}
%post httpd
-[ -x %{_bindir}/systemctl ] && reload-or-try-restart httpd.service || :
+[ -x %{_bindir}/systemctl ] && systemctl try-reload-or-restart httpd.service || :
%postun httpd
-[ -x %{_bindir}/systemctl ] && reload-or-try-restart httpd.service || :
+[ -x %{_bindir}/systemctl ] && systemctl try-reload-or-restart httpd.service || :
%endif
%if %{with nginx}
%post nginx
-[ -x %{_bindir}/systemctl ] && systemctl reload-or-try-restart nginx.service || :
+[ -x %{_bindir}/systemctl ] && systemctl try-reload-or-restart nginx.service || :
%postun nginx
-[ -x %{_bindir}/systemctl ] && systemctl reload-or-try-restart nginx.service || :
+[ -x %{_bindir}/systemctl ] && systemctl try-reload-or-restart nginx.service || :
%endif
%files filesystem
@@ -117,6 +117,9 @@ install -Dpm0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/nginx/default.d/web-asset
%endif
%changelog
+* Wed Sep 02 2026 Petr Pisar <ppisar@redhat.com> - 5-27
+- Fix restarting systemd services
+
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 5-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-02 11:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-02 11:18 [rpms/web-assets] rawhide: Fix restarting systemd services
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox