Add laminar ssh key
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 3 seconds
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 3 seconds
This commit is contained in:
parent
90780d2b52
commit
1ba923e551
2 changed files with 16 additions and 0 deletions
|
@ -120,6 +120,10 @@ if ask_yesno "Install Docker?"; then
|
||||||
source ./steps-config/10-docker.sh;
|
source ./steps-config/10-docker.sh;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ask_yesno "Add Laminar CI SSH public key to root authorized_keys?"; then
|
||||||
|
source ./steps-config/80-laminar-ssh.sh;
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# Autonomous config tasks
|
# Autonomous config tasks
|
||||||
|
|
12
src/steps-config/80-laminar-ssh.sh
Executable file
12
src/steps-config/80-laminar-ssh.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
task_begin "Adding Laminar CI SSH key";
|
||||||
|
|
||||||
|
mkdir -p /root/.ssh;
|
||||||
|
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICzYSWsGbWHh+cDheHJSKlCrxYDLwS6SKwVMV9SAaGsO laminar-ci@elessar" >>/root/.ssh/authorized_keys;
|
||||||
|
|
||||||
|
# Set permissions
|
||||||
|
sudo chown -R root:root /root/.ssh;
|
||||||
|
sudo chmod 0600 /root/.ssh/authorized_keys;
|
||||||
|
|
||||||
|
task_end "$?";
|
Loading…
Reference in a new issue