Add e2e_selfhost ssh keys
This commit is contained in:
parent
fc76a28abf
commit
e2d58c1870
@ -12,7 +12,9 @@
|
|||||||
"ecosystem": "../secrets/e2e-test/ecosystem-staging.json",
|
"ecosystem": "../secrets/e2e-test/ecosystem-staging.json",
|
||||||
"assets": {
|
"assets": {
|
||||||
"release": "../release",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +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 SERVER_NAME="<%= serverName %>"
|
readonly SERVER_NAME="<%= serverName %>"
|
||||||
readonly ENV="<%= env %>"
|
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
|
ln -sf /usr/local/node-4.2.2/bin/npm /usr/bin/npm
|
||||||
npm config set prefix /usr/local
|
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)
|
# install tmpreaper (runs everyday and clean tmp)
|
||||||
apt-get install -y tmpreaper
|
apt-get install -y tmpreaper
|
||||||
sed -e 's/SHOWWARNING=true/# SHOWWARNING=true/' -i /etc/tmpreaper.conf
|
sed -e 's/SHOWWARNING=true/# SHOWWARNING=true/' -i /etc/tmpreaper.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user