diff options
author | Jesús <heckyel@hyperbola.info> | 2021-04-08 10:21:21 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-04-08 10:21:21 -0500 |
commit | f98d998151ebaeb4e563f1a179610d600ad6d757 (patch) | |
tree | b42b4dae5fd817d5beba894bb158431daed31c0e /bootstrap.sh | |
download | gitolite-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.sh | 10 |
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" |