generated from alice-meta-packages/alice-meta-template
add ssh settings to post
Deploy Package / Explore-Gitea-Actions (push) Successful in 8s
Details
Deploy Package / Explore-Gitea-Actions (push) Successful in 8s
Details
This commit is contained in:
parent
97834cb760
commit
07ab98a0aa
|
@ -7,8 +7,14 @@ set -e
|
|||
db_get alice-auth/ldap-bind-password
|
||||
|
||||
SSSD_CONFIG=/etc/sssd/sssd.conf
|
||||
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
|
||||
|
||||
chmod 600 $SSSD_CONFIG
|
||||
chown root:root $SSSD_CONFIG
|
||||
|
||||
systemctl restart sssd autofs sshd
|
||||
|
|
Loading…
Reference in New Issue