From 60ad30ce5bb025fbb1460da5b3d44808011fca43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Fri, 21 May 2021 08:40:50 +0000 Subject: [PATCH] fix: install: adjust a sed to be FreeBSD 13 compliant --- bin/admin/install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/admin/install b/bin/admin/install index 4accc3e..777a048 100755 --- a/bin/admin/install +++ b/bin/admin/install @@ -1323,8 +1323,9 @@ if [ "${opt[modify-pam-lastlog]}" = 1 ]; then if ! grep -Eq '^\s*session\s+optional\s+pam_lastlog.so' "$PAM_SSHD" ; then action_detail "missing lastlog config in file, adjusting" # shellcheck disable=SC1004 - sed_compat '/^\s*@include\s+common-session/a\ - # bastion config: lastlog needs to be updated on connection\nsession optional pam_lastlog.so silent' "$PAM_SSHD" + sed_compat '/^[[:space:]]*@include[[:space:]]+common-session/a\ +# bastion config: lastlog needs to be updated on connection\ +session optional pam_lastlog.so silent' "$PAM_SSHD" action_done else action_na "lastlog config was already ok"