public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/autossh] epel10: Fix service template related scriptlet failure (#1996234)
@ 2026-10-11 14:41
0 siblings, 0 replies; only message in thread
From: @ 2026-10-11 14:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/autossh
Branch : epel10
Commit : 3820e999b29389d6beb0bfaa8e8c8fe5819466bc
Author : Alexander Boström <abo@root.snowtree.se>
Date : 2021-08-28T19:31:35+02:00
Stats : +15/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/autossh/c/3820e999b29389d6beb0bfaa8e8c8fe5819466bc?branch=epel10
Log:
Fix service template related scriptlet failure (#1996234)
---
diff --git a/autossh.spec b/autossh.spec
index 11f033e..09c4465 100644
--- a/autossh.spec
+++ b/autossh.spec
@@ -1,7 +1,7 @@
Summary: Utility to autorestart SSH tunnels
Name: autossh
Version: 1.4g
-Release: 6%{?dist}
+Release: 7%{?dist}
License: BSD
URL: https://www.harding.motd.ca/autossh/
Source0: https://www.harding.motd.ca/autossh/autossh-1.4g.tgz
@@ -52,10 +52,19 @@ getent passwd autossh >/dev/null || \
exit 0
%post
-%systemd_post "autossh@*.service"
+%systemd_post autossh@.service
%preun
-%systemd_preun "autossh@*.service"
+# https://bugzilla.redhat.com/1996234
+if [ $1 -eq 0 ] && [ -x /usr/bin/systemctl ]; then
+ # Package removal, not upgrade
+ if [ -d /run/systemd/system ]; then
+ /usr/bin/systemctl --no-reload disable --now autossh@.service || :
+ systemctl stop "autossh@*.service" || :
+ else
+ /usr/bin/systemctl --no-reload disable autossh@.service || :
+ fi
+fi
%postun
%systemd_postun_with_restart "autossh@*.service"
@@ -70,6 +79,9 @@ exit 0
%{_unitdir}/*
%changelog
+* Sat Aug 28 2021 Alexander Boström <abo@root.snowtree.se> - 1.4g-7
+- Fix service template related scriptlet failure (#1996234)
+
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4g-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-11 14:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 14:41 [rpms/autossh] epel10: Fix service template related scriptlet failure (#1996234)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox