mirror of
https://github.com/fire1ce/UDM-Persistent-SSH-Keys.git
synced 2023-10-10 13:36:54 +02:00
added "mkdir -p /mnt/data/ssh"
This commit is contained in:
parent
9fc7c67480
commit
46166b2de9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user