fix updgrade from versions before removal of systemd-ssh-generator

follow-up to
9bbf93829f

Resolves: RHEL-50131
This commit is contained in:
Jan Macku 2024-07-29 09:32:02 +02:00
parent 9bbf93829f
commit 9c62b00c87

View File

@ -48,7 +48,7 @@ Url: https://systemd.io
# Allow users to specify the version and release when building the rpm by
# setting the %%version_override and %%release_override macros.
Version: %{?version_override}%{!?version_override:256}
Release: 9%{?dist}
Release: 10%{?dist}
%global stable %(c="%version"; [ "$c" = "${c#*.*}" ]; echo $?)
@ -961,7 +961,7 @@ systemctl daemon-reexec || :
%triggerpostun -- systemd < 256-9
if [ -L /etc/ssh/sshd_config.d/20-systemd-userdb.conf ] && \
[ "$(readlink -f /etc/ssh/sshd_config.d/20-systemd-userdb.conf)" = "/usr/lib/systemd/sshd_config.d/20-systemd-userdb.conf" ] ; then
[ "$(readlink -m /etc/ssh/sshd_config.d/20-systemd-userdb.conf)" = "/usr/lib/systemd/sshd_config.d/20-systemd-userdb.conf" ] ; then
rm -f /etc/ssh/sshd_config.d/20-systemd-userdb.conf || :
fi
@ -1106,6 +1106,9 @@ rm -f .file-list-*
rm -f %{name}.lang
%changelog
* Mon Jul 29 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-10
- fix updgrade from versions before removal of systemd-ssh-generator - follow-up (RHEL-50131)
* Thu Jul 25 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-9
- fix updgrade from versions before removal of systemd-ssh-generator (RHEL-50131)