From f2b46b7b97487a134f8dd84eaf693b714ed4b6f2 Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Wed, 25 Jun 2025 08:21:59 -0500 Subject: [PATCH] . --- SetupNewSystem.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SetupNewSystem.sh b/SetupNewSystem.sh index a3520e6..d83ca16 100644 --- a/SetupNewSystem.sh +++ b/SetupNewSystem.sh @@ -65,11 +65,12 @@ export SUBODEV_SSH_DIR="/home/subodev/.ssh" if [ ! -d $ROOT_SSH_DIR ]; then mkdir /root/.ssh/ - && chmod 400 /root/.ssh/authorized_keys \ - && chown root: /root/.ssh/authorized_keys fi -curl --silent https://dl.knownelement.com/KNEL/FetchApply/ConfigFiles/SSH/AuthorizedKeys/root-ssh-authorized-keys > /root/.ssh/authorized_keys \ +curl --silent https://dl.knownelement.com/KNEL/FetchApply/ConfigFiles/SSH/AuthorizedKeys/root-ssh-authorized-keys > /root/.ssh/authorized_keys +chmod 400 /root/.ssh/authorized_keys +chown root: /root/.ssh/authorized_keys + if [ "$LOCALUSER_CHECK" = 1 ]; then if [ ! -d $LOCALUSER_SSH_DIR ]; then