diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-04-10 08:38:44 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-04-10 08:38:44 +0300 |
commit | ec68ed5458ef8884e0cfbe5223a0549b0ab39e67 (patch) | |
tree | 0c2ab758cca122caa3c56f22f486dcf86466b81a /set-authorized-key | |
parent | b39598e825ff813b99afa8e9619c11d3d13ba701 (diff) | |
download | ick-contractor-ec68ed5458ef8884e0cfbe5223a0549b0ab39e67.tar.gz |
Change: tweak installation instructions
Diffstat (limited to 'set-authorized-key')
-rwxr-xr-x | set-authorized-key | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/set-authorized-key b/set-authorized-key index b74eb2f..bee9132 100755 --- a/set-authorized-key +++ b/set-authorized-key @@ -3,7 +3,7 @@ set -eu img="$1" -pubkey="$2" +shift undo() { umount --force "$tmp" || true @@ -16,4 +16,4 @@ tmp="$(mktemp -d)" dev="/dev/mapper/$(kpartx -asv "$img" | awk '{ print $3 }')" mount "$dev" "$tmp" -cp "$pubkey" "$tmp/home/manager/.ssh/authorized_keys" +cp "$@" "$tmp/home/manager/.ssh/authorized_keys" |