Commit 0e4270e4 authored by Aral Balkan's avatar Aral Balkan

Added .ssh/config template so we have the correct keys/rights to do a local...

Added .ssh/config template so we have the correct keys/rights to do a local deploy of the app initially.
parent d9e07c49
Host dokku-local {builderDomain}
Hostname {builderDomain}
IdentityFile ~/ind.ie.blockdown-builder/ssh/id_rsa
User dokku
......@@ -138,6 +138,17 @@ mkdir $ROOT/ssh
echo "$publicKey" > $ROOT/ssh/id_rsa.pub
echo "$privateKey" > $ROOT/ssh/id_rsa
# Restrict the permissions on the private ssh key
chmod 600 $ROOT/ssh/id_rsa
# Copy the SSH config file to ~/.ssh/ and configure it
# so that we can initially deploy the application locally from the server.
cp .ssh/config.template ~/.ssh/config
sed -i "s/{builderDomain}/${builderDomain}/g" .ssh/config
# TODO: REMOVE
read -e -p "All good so far? " debugChanceToExit
#
# Set up the repositories used by the builder.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment