public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/autossh] epel10: Fix service template related scriptlet failure (#1996234)
Date: Sun, 11 Oct 2026 14:41:51 GMT	[thread overview]
Message-ID: <179172971183.1.16293419905398431474.rpms-autossh-3820e999b293@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-10-11 14:41 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=179172971183.1.16293419905398431474.rpms-autossh-3820e999b293@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