laminar-sshkey: done in new system
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 4 seconds

This commit is contained in:
Starbeamrainbowlabs 2021-11-26 22:26:34 +00:00
parent e3103db431
commit 7c84b379f6
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -1,16 +0,0 @@
#!/usr/bin/env bash
sshkey="$(mktemp --tmpdir "laminarci-sshkey-pub-XXXXXXX")";
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICzYSWsGbWHh+cDheHJSKlCrxYDLwS6SKwVMV9SAaGsO laminar-ci@elessar" >"${sshkey}";
upload_target="/tmp/laminarci-sshkey-pub";
COPY "${sshkey}" "${upload_target}";
RUN "sudo mkdir -p /root/.ssh";
RUN_ONCE "cat '${upload_target}' | sudo tee /root/.ssh/authorized_keys";
RUN "rm '${upload_target}'";
# Set permissions
RUN "sudo chown -R root:root /root/.ssh";
RUN "sudo chmod 0600 /root/.ssh/authorized_keys";