aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.sh')
-rw-r--r--bootstrap.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100644
index 0000000..f9da047
--- /dev/null
+++ b/bootstrap.sh
@@ -0,0 +1,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"