summaryrefslogtreecommitdiff
path: root/set-authorized-key
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-04-10 08:38:44 +0300
committerLars Wirzenius <liw@liw.fi>2020-04-10 08:38:44 +0300
commitec68ed5458ef8884e0cfbe5223a0549b0ab39e67 (patch)
tree0c2ab758cca122caa3c56f22f486dcf86466b81a /set-authorized-key
parentb39598e825ff813b99afa8e9619c11d3d13ba701 (diff)
downloadick-contractor-ec68ed5458ef8884e0cfbe5223a0549b0ab39e67.tar.gz
Change: tweak installation instructions
Diffstat (limited to 'set-authorized-key')
-rwxr-xr-xset-authorized-key4
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"