public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/nginx] f44: Handle missing nginx transaction trigger argument
@ 2026-11-20 14:31 Fabian Sauter
0 siblings, 0 replies; only message in thread
From: Fabian Sauter @ 2026-11-20 14:31 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/nginx
Branch : f44
Commit : 3e059ff40c343ee3b0726eefee2e690f3f247c1c
Author : Fabian Sauter <fabian.sauter@apsensing.com>
Date : 2026-11-19T15:58:35+01:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/nginx/c/3e059ff40c343ee3b0726eefee2e690f3f247c1c?branch=f44
Log:
Handle missing nginx transaction trigger argument
Regular RPM transactions pass an installed package count in , so the live upgrade check behaves as before.
rpm-ostree runs the trigger without that argument. Defaulting to 0 skips nginx-upgrade cleanly while preparing the deployment.
Assisted-by: OpenAI Codex
---
diff --git a/nginx.spec b/nginx.spec
index ee738b7..40ee803 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -510,7 +510,7 @@ install -m 644 -p %{SOURCE20} %{buildroot}%{_tmpfilesdir}/nginx.conf
# Request zero-downtime upgrade upon installation of a new nginx binary or modules
# A reload is not sufficient here: https://blog.nginx.org/blog/nginx-dynamic-modules-how-they-work#upgradeMod
%transfiletriggerin -- %{_sbindir}/nginx %{nginx_moduleconfdir} %{nginx_moduledir}
-if [ $1 -ge 1 ]; then
+if [ "${1:-0}" -ge 1 ]; then
test -f %{_sysconfdir}/nginx/rpm-disable-upgrade || /usr/bin/nginx-upgrade >/dev/null 2>&1 || :
fi
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-20 14:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 14:31 [rpms/nginx] f44: Handle missing nginx transaction trigger argument Fabian Sauter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox