Skip to content

Commit 6622528

Browse files
committed
installer: fix providing SSH public keys as files (refs #52)
1 parent f32e959 commit 6622528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/opt/raspberrypi-ua-netinst/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ if [ -n "${root_ssh_pubkey}" ]; then
10881088
if mkdir -p /rootfs/root/.ssh && chmod 700 /rootfs/root/.ssh; then
10891089
if [ -f "/bootfs/raspberrypi-ua-netinst/config/files/${root_ssh_pubkey}" ]; then
10901090
echo -n " from file '${root_ssh_pubkey}'... "
1091-
cp "/bootfs/raspberrypi-ua-netinst/config/files/${root_ssh_pubkey}" /rootfs/root/.ssh/authorized_keys | fail
1091+
cp "/bootfs/raspberrypi-ua-netinst/config/files/${root_ssh_pubkey}" /rootfs/root/.ssh/authorized_keys || fail
10921092
echo "OK"
10931093
else
10941094
echo -n "... "
@@ -1135,7 +1135,7 @@ if [ -n "${username}" ]; then
11351135
if mkdir -p "/rootfs/home/${username}/.ssh" && chmod 700 "/rootfs/home/${username}/.ssh"; then
11361136
if [ -f "/bootfs/raspberrypi-ua-netinst/config/files/${user_ssh_pubkey}" ]; then
11371137
echo -n " from file '${user_ssh_pubkey}'... "
1138-
cp "/bootfs/raspberrypi-ua-netinst/config/files/${user_ssh_pubkey}" "/rootfs/home/${username}/.ssh/authorized_keys" | fail
1138+
cp "/bootfs/raspberrypi-ua-netinst/config/files/${user_ssh_pubkey}" "/rootfs/home/${username}/.ssh/authorized_keys" || fail
11391139
echo "OK"
11401140
else
11411141
echo -n "... "

0 commit comments

Comments
 (0)