From 46166b2de913cf7760cd7a72459cdc257b03d21f Mon Sep 17 00:00:00 2001 From: Stas Yakobov Date: Fri, 30 Sep 2022 16:32:15 +0300 Subject: [PATCH] added "mkdir -p /mnt/data/ssh" --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 4958ee4..6407a58 100644 --- a/install.sh +++ b/install.sh @@ -8,12 +8,12 @@ chmod +x /mnt/data/on_boot.d/99-ssh-keys.sh echo "99-ssh-keys.sh installed" if [ ! -f "$user_authorized_keys_file" ]; then - touch $user_authorized_keys_file echo "Creating $user_authorized_keys_file" + mkdir -p /mnt/data/ssh + touch "$user_authorized_keys_file" + chmod 0644 "$user_authorized_keys_file" fi -chmod 0644 $user_authorized_keys_file - echo "==> Add you public keys to $user_authorized_keys_file" echo "==> Done." exit 0