Skip to content

Commit

Permalink
update: install files + update greenlet dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
juggler31 committed Sep 18, 2024
1 parent 5cfa411 commit 6993f2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
3 changes: 3 additions & 0 deletions install_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ if ! database_exists $db_name
echo "Creating syntheseff example table"
sudo -n -u postgres -s psql -d $db_name -f /tmp/atlas/without_geonature.sql &>> log/install_db.log
sudo -n -u postgres -s psql -d $db_name -c "ALTER TABLE synthese.syntheseff OWNER TO "$owner_atlas";"

sudo -n -u postgres -s psql -d $db_name -c "ALTER TABLE utilisateurs.bib_organismes OWNER TO "$owner_atlas";"
sudo -n -u postgres -s psql -d $db_name -c "ALTER TABLE gn_meta.cor_dataset_actor OWNER TO "$owner_atlas";"
fi

# FR: Creation des Vues Matérialisées (et remplacement éventuel des valeurs en dur par les paramètres)
Expand Down
34 changes: 2 additions & 32 deletions install_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,45 +20,15 @@ fi
sudo apt-get update
sudo apt-get -y upgrade


# Go to folder of install_env.sh
cd "$(dirname "$0")"

sudo apt-get install -y unzip
sudo apt-get install -y apache2
sudo apt-get install -y wget unzip apache2 postgis
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo apachectl restart

sudo apt-get install -y postgresql

if [ "$OS_VERSION" == "11" ]
then
sudo apt-get install -y postgresql-server-dev-13
sudo apt install -y postgis postgresql-13-postgis-3
fi

if [ "$OS_VERSION" == "10" ]
then
sudo apt-get install -y postgresql-server-dev-11
sudo apt install -y postgis-2.5 postgis
fi

if [ "$OS_VERSION" == "9" ]
then
sudo apt-get install -y postgresql-server-dev-9.6
sudo apt install -y postgis-2.3 postgis postgresql-9.6-postgis-2.3
fi


sudo apt-get install -y python-setuptools
sudo apt-get install -y libpq-dev python3-dev

sudo apt-get install python-pip
sudo apt-get install -y python-gdal
sudo apt-get install -y gdal-bin

sudo apt-get install -y python3-virtualenv virtualenv
sudo apt-get install -y python3-setuptools libpq-dev python3-dev python3-pip python3-gdal gdal-bin python3-virtualenv

# install nvm
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ geoalchemy2==0.9.4
# via -r requirements.in
geojson==2.5.0
# via -r requirements.in
greenlet==1.1.3
greenlet==3.0.3
# via sqlalchemy
gunicorn==20.1.0
# via -r requirements.in
Expand Down

0 comments on commit 6993f2d

Please sign in to comment.