From 6641d3d412d93ddea66a9a6e08b9a1de850928c1 Mon Sep 17 00:00:00 2001 From: zhengxiaoxiao Date: Mon, 29 Aug 2022 03:41:50 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpost=E4=B8=AD/etc/pam.d/crond?= =?UTF-8?q?=20sed=E5=85=B3=E9=94=AE=E5=AD=97=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhengxiaoxiao --- security-tool.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/security-tool.spec b/security-tool.spec index dd71b8f..1a56ef4 100644 --- a/security-tool.spec +++ b/security-tool.spec @@ -1,7 +1,7 @@ Summary: openEuler Security Tool Name : security-tool Version: 2.0 -Release: 1.49 +Release: 1.50 Source0: %{name}-%{version}.tar.bz2 Source1: security Source2: security.conf @@ -51,7 +51,7 @@ rm -rf $RPM_BUILD_ROOT %pre %post -sed -i 's/password-auth$/password-auth-crond/g' /etc/pam.d/crond +sed -i 's/system-auth$/password-auth-crond/g' /etc/pam.d/crond if [ $1 -ge 2 ] then @@ -74,7 +74,7 @@ systemctl enable openEuler-security.service %systemd_preun openEuler-security.service if [ $1 -eq 0 ] then - sed -i 's/password-auth-crond$/password-auth/g' /etc/pam.d/crond + sed -i 's/password-auth-crond$/system-auth/g' /etc/pam.d/crond fi %postun @@ -120,6 +120,9 @@ fi %attr(0500,root,root) %{_sbindir}/security-tool.sh %changelog +* Mon Aug 29 2022 zhengxiaoxiao - 2.0-1.50 +- fix sed keyword error in /etc/pam.d/crond + * Mon Oct 12 2020 gaoyusong - 2.0-1.49 - Use secure MACs and KexAlgorithms -- Gitee