Put the ssh keys in the correct folder
This commit is contained in:
parent
4d068d32b0
commit
2e025633d5
@ -12,7 +12,7 @@ readonly CERTS_DIR="/home/ubuntu/certs"
|
|||||||
readonly APP_REPO_DIR="/home/ubuntu/app.git"
|
readonly APP_REPO_DIR="/home/ubuntu/app.git"
|
||||||
readonly INIT_MASTER_DIR="/tmp/repoMasterSetup"
|
readonly INIT_MASTER_DIR="/tmp/repoMasterSetup"
|
||||||
readonly ECOSYSTEM="/home/ubuntu/ecosystem.json"
|
readonly ECOSYSTEM="/home/ubuntu/ecosystem.json"
|
||||||
readonly SSH_KEY_DIR="/home/ubuntu/ssh_keys"
|
readonly SSH_KEY_DIR="/home/ubuntu/.ssh/"
|
||||||
readonly SERVER_NAME="<%= serverName %>"
|
readonly SERVER_NAME="<%= serverName %>"
|
||||||
readonly ENV="<%= env %>"
|
readonly ENV="<%= env %>"
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ ln -sf /usr/local/node-6.9.5/bin/npm /usr/bin/npm
|
|||||||
npm config set prefix /usr/local
|
npm config set prefix /usr/local
|
||||||
|
|
||||||
# copy ssh certs
|
# copy ssh certs
|
||||||
rm -rf "${SSH_KEY_DIR}" && mkdir -p "${SSH_KEY_DIR}"
|
mkdir -p "${SSH_KEY_DIR}"
|
||||||
mv /tmp/id_rsa* "${SSH_KEY_DIR}"
|
mv /tmp/id_rsa* "${SSH_KEY_DIR}"
|
||||||
chmod 600 ${SSH_KEY_DIR}/id_rsa_*
|
chmod 600 ${SSH_KEY_DIR}/id_rsa_*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user