added "mkdir -p /mnt/data/ssh"

This commit is contained in:
Stas Yakobov 2022-09-30 16:32:15 +03:00
parent 9fc7c67480
commit 46166b2de9

View File

@ -8,12 +8,12 @@ chmod +x /mnt/data/on_boot.d/99-ssh-keys.sh
echo "99-ssh-keys.sh installed" echo "99-ssh-keys.sh installed"
if [ ! -f "$user_authorized_keys_file" ]; then if [ ! -f "$user_authorized_keys_file" ]; then
touch $user_authorized_keys_file
echo "Creating $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 fi
chmod 0644 $user_authorized_keys_file
echo "==> Add you public keys to $user_authorized_keys_file" echo "==> Add you public keys to $user_authorized_keys_file"
echo "==> Done." echo "==> Done."
exit 0 exit 0