]>
Git — Sourcephile - gargantext.git/blob - devops/upgrade/0.0.6.1.sh
3 # To be executed at the root of the project
10 sudo
sed -i "s/buster/bullseye/g" /etc
/apt
/sources.list
12 sudo apt
-yy dist
-upgrade
18 #./bin/psql gargantext.ini < devops/postgres/upgrade/0.0.6.0.sql
19 # exec script haskell upgrade
21 #./bin/psql gargantext.ini < devops/postgres/upgrade/0.0.6.1.sql
22 # ~/.local/bin/gargantext-upgrade
24 sudo
-i -u postgres bash
<< EOF
25 pg_dumpall > /tmp/backup.dump
28 sudo
sed -i "s/bullseye/bookworm/g" /etc
/apt
/sources.list
30 sudo apt
-yy dist
-upgrade
31 sudo apt
install -y postgresql
-14 libpq
-dev
33 sudo
-i -u postgres bash
<< EOF
34 psql < /tmp/backup.dump
37 sed -i "s/DB_PORT = 5432/DB_PORT = 5433/" gargantext.ini
38 DBPASS
=$(grep "DB_PASS" gargantext.ini | sed "s/^.*= //")
42 sudo
-i -u postgres bash
<< EOF
43 psql < 'ALTER ROLE gargantua password \'$DBPASS\'';
47 .
/bin
/psql gargantext.ini
< devops
/postgres
/upgrade
/0.0.6.2.sql