From 5735cf2ffbb1415765f4c70ca41e6abf37ed1c5e Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 1 Jun 2023 15:41:26 +0900 Subject: [PATCH] bug fixes in ls for ssh key move --- bin/authorized_key_location_change.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/authorized_key_location_change.sh b/bin/authorized_key_location_change.sh index 91f94d6..03f697b 100755 --- a/bin/authorized_key_location_change.sh +++ b/bin/authorized_key_location_change.sh @@ -59,11 +59,11 @@ fi; echo "SSH Msater Authorized Key file: ${SSH_MASTER_AUTHORIZED_FILE}"; echo "SSH Authorized Keys file folder: ${SSH_CENTRAL_AUTHORIZED_FILE_FOLDER}"; -if [ ${LIST} -eq 1 ]; +if [ ${LIST} -eq 1 ]; then ls -l "${SSH_CENTRAL_AUTHORIZED_FILE_FOLDER}"; lsattr "${SSH_CENTRAL_AUTHORIZED_FILE_FOLDER}"; exit; -then; +fi; PRINTF_INFO="%-8s [%3s]: %-25s: %s\n"; # list of user accounts we will never touch