aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-04-08 10:21:21 -0500
committerJesús <heckyel@hyperbola.info>2021-04-08 10:21:21 -0500
commitf98d998151ebaeb4e563f1a179610d600ad6d757 (patch)
treeb42b4dae5fd817d5beba894bb158431daed31c0e /bootstrap.sh
downloadgitolite-cgit-docker-f98d998151ebaeb4e563f1a179610d600ad6d757.tar.lz
gitolite-cgit-docker-f98d998151ebaeb4e563f1a179610d600ad6d757.tar.xz
gitolite-cgit-docker-f98d998151ebaeb4e563f1a179610d600ad6d757.zip
initial commit
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"