Add e2e_selfhost ssh keys

This commit is contained in:
Johannes Zellner 2017-02-07 11:34:33 +01:00
parent fc76a28abf
commit e2d58c1870
2 changed files with 9 additions and 1 deletions

View File

@ -12,7 +12,9 @@
"ecosystem": "../secrets/e2e-test/ecosystem-staging.json",
"assets": {
"release": "../release",
"cloudron": "../cloudron-cli"
"cloudron": "../cloudron-cli",
"id_rsa_e2e_selfhost": "../secrets/e2e-test/ssh/id_rsa_e2e_selfhost",
"id_rsa_e2e_selfhost.pub": "../secrets/e2e-test/ssh/id_rsa_e2e_selfhost.pub"
}
}
}

View File

@ -12,6 +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 SERVER_NAME="<%= serverName %>"
readonly ENV="<%= env %>"
@ -45,6 +46,11 @@ ln -sf /usr/local/node-4.2.2/bin/node /usr/bin/node
ln -sf /usr/local/node-4.2.2/bin/npm /usr/bin/npm
npm config set prefix /usr/local
# copy ssh certs
rm -rf "${SSH_KEY_DIR}" && mkdir -p "${SSH_KEY_DIR}"
mv /tmp/id_rsa* "${SSH_KEY_DIR}"
chmod 600 ${SSH_KEY_DIR}/id_rsa_*
# install tmpreaper (runs everyday and clean tmp)
apt-get install -y tmpreaper
sed -e 's/SHOWWARNING=true/# SHOWWARNING=true/' -i /etc/tmpreaper.conf