From 4a4e90bf9af14291c73bafc3b4fe3fea47fc125a Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Sun, 17 Nov 2024 21:51:06 -0300 Subject: [PATCH] fix sed --- DEBIAN/postinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DEBIAN/postinst b/DEBIAN/postinst index afecd94..86ede75 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -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