add --follow-symlinks to %post sed or it will destroy password-auth symlink [release 1.2.1-3mamba;Mon Oct 12 2015]

This commit is contained in:
Silvan Calarco 2024-01-06 08:23:27 +01:00
parent d9d8039ef2
commit f06a738480

View File

@ -10,7 +10,7 @@
Name: pam
Version: 1.2.1
Release: 2mamba
Release: 3mamba
Summary: Utilities for monitoring your system and processes on your system
Group: System/Libraries
Vendor: openmamba
@ -160,7 +160,7 @@ if [ $1 -ge 1 ]; then
groupadd camera -g %{group_camera} 2>/dev/null
groupadd scanner -g %{group_scanner} 2>/dev/null
sed -i "s|required[ \t]*pam_stack.so service=system-auth|include system-auth|" %{_sysconfdir}/pam.d/*
sed -i --follow-symlinks "s|required[ \t]*pam_stack.so service=system-auth|include system-auth|" %{_sysconfdir}/pam.d/*
fi
if [ $1 -gt 1 ]; then
grep pam_systemd %{_sysconfdir}/pam.d/system-auth >/dev/null || {
@ -236,6 +236,9 @@ exit 0
#%endif
%changelog
* Mon Oct 12 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-3mamba
- add --follow-symlinks to %post sed or it will destroy password-auth symlink
* Sat Oct 10 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-2mamba
- add symlink password-auth to /etc/pam.d/system-auth