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