!72 [sync] PR-67: 【轻量级 PR】:修复post中/etc/pam.d/crond sed关键字错误问题
From: @openeuler-sync-bot Reviewed-by: @HuaxinLuGitee Signed-off-by: @HuaxinLuGitee
This commit is contained in:
commit
b810d08294
@ -1,7 +1,7 @@
|
||||
Summary: openEuler Security Tool
|
||||
Name : security-tool
|
||||
Version: 2.0
|
||||
Release: 1.81
|
||||
Release: 1.82
|
||||
Source0: https://gitee.com/openeuler/security-tool/repository/archive/v2.0.tar.gz
|
||||
License: Mulan PSL v2
|
||||
URL: https://gitee.com/openeuler/security-tool
|
||||
@ -53,7 +53,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
|
||||
@ -76,7 +76,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
|
||||
@ -122,6 +122,9 @@ fi
|
||||
%attr(0500,root,root) %{_sbindir}/security-tool.sh
|
||||
|
||||
%changelog
|
||||
* Mon Aug 29 2022 zhengxiaoxiao <zhengxiaoxiao2@huawei.com> - 2.0-1.82
|
||||
- fix sed keyword error in /etc/pam.d/crond
|
||||
|
||||
* Mon Aug 15 2022 zhengxiaoxiao <zhengxiaoxiao2@huawei.com> - 2.0-1.81
|
||||
- add secure hostKey algorithms
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user