public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/web-assets] rawhide: Fix restarting systemd services
Date: Wed, 02 Sep 2026 11:18:50 GMT [thread overview]
Message-ID: <178834793082.1.11295569753735793429.rpms-web-assets-1e392f15404f@fedoraproject.org> (raw)
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
reply other threads:[~2026-09-02 11:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178834793082.1.11295569753735793429.rpms-web-assets-1e392f15404f@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox