Merge pull request #152 from poanetwork/vb-node12

Init script: explicitly install node 12
This commit is contained in:
Victor Baranov 2020-02-07 15:27:07 +03:00 committed by GitHub
commit d7d4df6406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -66,6 +66,7 @@ if ! which libtool >/dev/null; then
fi
if ! which node >/dev/null; then
log "Installing nodejs.."
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
yum --enablerepo=epel install -y nodejs >"$LOG"
fi
if ! which gcc >/dev/null; then
@ -147,9 +148,10 @@ EOF
log "Installing Erlang.."
wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_64/esl-erlang_21.1-1~centos~7_amd64.rpm
erlang_version="esl-erlang_22.0-1~centos~7_amd64.rpm"
wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_64/${erlang_version}
yum localinstall -y wxGTK-devel unixODBC-devel >"$LOG"
yum localinstall -y esl-erlang_21.1-1~centos~7_amd64.rpm >"$LOG"
yum localinstall -y ${erlang_version} >"$LOG"
log "Fetching configuration from Parameter Store..."
fetch_ssm_with_token