aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
blob: f9da0478870b9de3a540608ab666d1a591c441fe (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

# change ssh_key, ssh_key_name to reflect your current setup
SSH_KEY=$(cat ~/.ssh/id_rsa.pub)
SSH_KEY_NAME=$(whoami)

sed -i.bak \
    -e "s#SSH_KEY=.*#SSH_KEY=${SSH_KEY}#g" \
    -e "s#SSH_KEY_NAME=.*#SSH_KEY_NAME=${SSH_KEY_NAME}#g" \
    "$(dirname "$0")/config.env"