diff --git a/prepareDeployTarget.sh b/prepareDeployTarget.sh index faccad8..418f4d9 100644 --- a/prepareDeployTarget.sh +++ b/prepareDeployTarget.sh @@ -12,7 +12,7 @@ readonly CERTS_DIR="/home/ubuntu/certs" readonly APP_REPO_DIR="/home/ubuntu/app.git" readonly INIT_MASTER_DIR="/tmp/repoMasterSetup" 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 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 # 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}" chmod 600 ${SSH_KEY_DIR}/id_rsa_*