fix sed
Deploy Package / Explore-Gitea-Actions (push) Successful in 8s Details

This commit is contained in:
Carneiro 2024-11-17 21:51:06 -03:00
parent 07ab98a0aa
commit 4a4e90bf9a
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ SSHD_CONFIG=/etc/ssh/sshd_config
sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $RET/" $SSSD_CONFIG
sed -i "s/.*AuthorizedKeysCommand.*/AuthorizedKeysCommand \/usr\/bin\/sss_ssh_authorizedkeys/" $SSHD_CONFIG
sed -i "s/#AuthorizedKeysCommandUser/AuthorizedKeysCommandUser/" $SSHD_CONFIG
sed -i "s/#AuthorizedKeysCommand/AuthorizedKeysCommand/" $SSHD_CONFIG
sed -i "/AuthorizedKeysCommand\( \|$\)/s/AuthorizedKeysCommand.*/AuthorizedKeysCommand \/usr\/bin\/sss_ssh_authorizedkeys/" $SSHD_CONFIG
chmod 600 $SSSD_CONFIG
chown root:root $SSSD_CONFIG