mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 08:35:24 +03:00
fix: create ~/.ssh folder as required by ssh-copy-id
This commit is contained in:
parent
e46a6746fd
commit
a102f30bc8
@ -179,6 +179,8 @@ fi
|
||||
ssh_key_dir=$(mktemp -d)
|
||||
trap 'rm -rf "$ssh_key_dir"' EXIT
|
||||
mkdir -p "$ssh_key_dir"
|
||||
# ssh-copy-id requires this directory
|
||||
mkdir -p "$HOME/.ssh/"
|
||||
ssh-keygen -t ed25519 -f "$ssh_key_dir"/nixos-anywhere -P "" -C "nixos-anywhere" >/dev/null
|
||||
|
||||
# parse flake nixos-install style syntax, get the system attr
|
||||
|
Loading…
Reference in New Issue
Block a user