rm buggy posttrans which breaks if-else etc.

This commit is contained in:
Mikhail Novosyolov 2024-07-08 22:07:04 +03:00
parent bbbe055df0
commit 2027aa6976

View file

@ -15,7 +15,7 @@
Summary: A security tool which provides authentication for applications
Name: pam
Version: 1.6.1
Release: 2
Release: 3
Epoch: 1
# The library is BSD licensed with option to relicense as GPLv2+ - this option is redundant
# as the BSD license allows that anyway. pam_timestamp and pam_console modules are GPLv2+,
@ -138,14 +138,6 @@ having to recompile programs that handle authentication.
%{_prefix}/lib/tmpfiles.d/pam.conf
%{_sbindir}/faillock
%posttrans
set -e
if ! test -f /var/lib/.pam-posttrans-cleanup && grep -qE 'pam_console|pam_lastlog' /etc/pam.d/*
then
sed -i'.rpmsave' -e '/pam_console.so/d' -e '/pam_lastlog.so/d' /etc/pam.d/*
touch /var/lib/.pam-posttrans-cleanup
fi
#----------------------------------------------------------------------------
%package doc