]>
Git — Sourcephile - gargantext.git/blob - devops/upgrade/0.0.6.1.sh
3 # To be executed at the root of the project
4 # To upgrade from 0.0.5.9 to 0.0.6.2
8 sudo
sed -i "s/buster/bullseye/g" /etc
/apt
/sources.list
10 sudo apt
-yy dist
-upgrade
12 ##############################################################
14 sudo
-i -u postgres bash
<< EOF
15 pg_dumpall > /tmp/backup.dump
17 ##############################################################
19 sudo
sed -i "s/bullseye/bookworm/g" /etc
/apt
/sources.list
21 sudo apt
-yy dist
-upgrade
22 sudo apt
install -y postgresql
-14 libpq
-dev
23 sudo apt remove
--purge postgresql
-11 postgresql
-13
26 ##############################################################
28 sudo
-i -u postgres bash
<< EOF
29 psql < /tmp/backup.dump
32 ##############################################################
34 sed -i "s/DB_PORT = 5432/DB_PORT = 5434/" gargantext.ini
36 # be sure the DB password is the right one
37 DBPASS
=$(grep "DB_PASS" gargantext.ini | sed "s/^.*= //")
40 sudo
-i -u postgres psql
<< EOF
41 ALTER ROLE gargantua password '${DBPASS}';
44 ##############################################################
45 # Make sure compilation is ok
49 ##############################################################
51 echo "0.0.6.0 SQL upgrade"
52 .
/bin
/psql gargantext.ini
< devops
/postgres
/upgrade
/0.0.6.0.sql
54 echo "0.0.6.1 SQL upgrade"
55 .
/bin
/psql gargantext.ini
< devops
/postgres
/upgrade
/0.0.6.1.sql
57 echo "0.0.6.2 SQL upgrade"
58 .
/bin
/psql gargantext.ini
< devops
/postgres
/upgrade
/0.0.6.2.sql
60 echo "Executing script haskell upgrade"
61 ~
/.local
/bin
/gargantext
-upgrade gargantext.ini
63 echo "Upgrade is over"