Skip to content

Commit

Permalink
Merge pull request #1953 from MarceloPilatti/b4.1.1
Browse files Browse the repository at this point in the history
Fixed file check on release-install.sh
  • Loading branch information
juan0101 authored Aug 20, 2020
2 parents 81ad837 + f289d43 commit 207ae6d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions install/release-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash

wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
sudo sh -c "echo 'deb https://deb.nodesource.com/node_8.x xenial main' > /etc/apt/sources.list.d/nodesource.list"
Expand All @@ -9,13 +9,14 @@ sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main'
wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

sudo apt-get update
sudo apt-get install -y cmake git libquazip-dev unzip screen openssh-server doxygen supervisor locales libgsasl7 postgresql-11-postgis-2.5 postgresql-server-dev-11 nodejs python-psycopg2 gdal-bin openjdk-8-jdk
sudo apt-get install -y cmake libquazip-dev zip unzip screen openssh-server doxygen supervisor locales libgsasl7 postgresql-11-postgis-2.5 postgresql-server-dev-11 nodejs python-psycopg2 gdal-bin openjdk-8-jdk

mkdir $HOME/.ssh
ssh-keygen -t rsa -b 4096 -C "terrama2-team@dpi.inpe.br" -N "" -f $HOME/.ssh/id_rsa

mkdir terralib-installer
cd terralib-installer
if ! [ test -f "terralib-5.4.5-ubuntu-16.04_2019-12-13_15-45-5.4.5.tar.gz" ]
if [ ! -f "terralib-5.4.5-ubuntu-16.04.tar.gz" ]
then
wget -q http://www.dpi.inpe.br/jenkins-data/terrama2/3rdparty/terralib-5.4.5-ubuntu-16.04.tar.gz
fi
Expand All @@ -26,17 +27,17 @@ tar xf terralib-5.4.5-ubuntu-16.04_2019-12-13_15-45-5.4.5.tar.gz
cd ..

mkdir terrama2-deb

cd terrama2-deb

if ! [ test -f "TerraMA2-4.1.1-release-linux-x64-Ubuntu-16.04.deb" ]
if [ ! -f "TerraMA2-4.1.1-release-linux-x64-Ubuntu-16.04.deb" ]
then
wget -q http://www.dpi.inpe.br/jenkins-data/terrama2/installers/linux/final/TerraMA2-4.1.1-release-linux-x64-Ubuntu-16.04.deb
fi

sudo dpkg -i TerraMA2-4.1.1-release-linux-x64-Ubuntu-16.04.deb

if ! [ test -f "terrama2-doc-4.1.1.deb" ]
sudo apt install -y -f

if [ ! -f "terrama2-doc-4.1.1.deb" ]
then
wget -q http://www.dpi.inpe.br/jenkins-data/terrama2/installers/linux/final/terrama2-doc-4.1.1.deb
fi
Expand Down

0 comments on commit 207ae6d

Please sign in to comment.