Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
149
Issues
149
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
9ea8f1fd
Commit
9ea8f1fd
authored
Sep 12, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] upgrade script
parent
275ea092
Pipeline
#3172
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
0.0.6.1.sh
devops/upgrade/0.0.6.1.sh
+22
-20
No files found.
devops/upgrade/0.0.6.1.sh
View file @
9ea8f1fd
...
...
@@ -2,8 +2,6 @@
# To be executed at the root of the project
# To upgrade from 0.0.5.9 to 0.0.6.2
sudo
apt update
sudo
apt
-yy
upgrade
...
...
@@ -11,22 +9,12 @@ sudo sed -i "s/buster/bullseye/g" /etc/apt/sources.list
sudo
apt update
sudo
apt
-yy
dist-upgrade
git pull origin dev
./bin/install
# Database upgrade
echo
"0.0.6.0 SQL upgrade"
./bin/psql gargantext.ini < devops/postgres/upgrade/0.0.6.0.sql
echo
"Executing script haskell upgrade"
~/.local/bin/gargantext-upgrade
echo
"0.0.6.1 SQL upgrade"
./bin/psql gargantext.ini < devops/postgres/upgrade/0.0.6.1.sql
##############################################################
# BACKUP
sudo
-i
-u
postgres bash
<<
EOF
pg_dumpall > /tmp/backup.dump
EOF
##############################################################
sudo sed
-i
"s/bullseye/bookworm/g"
/etc/apt/sources.list
sudo
apt update
...
...
@@ -35,11 +23,14 @@ sudo apt install -y postgresql-14 libpq-dev
sudo
apt remove
--purge
postgresql-11 postgresql-13
sudo
apt autoremove
##############################################################
# BACKUP
sudo
-i
-u
postgres bash
<<
EOF
psql < /tmp/backup.dump
EOF
##############################################################
# DB CONFIG
sed
-i
"s/DB_PORT = 5432/DB_PORT = 5434/"
gargantext.ini
# be sure the DB password is the right one
...
...
@@ -50,14 +41,25 @@ sudo -i -u postgres psql << EOF
ALTER ROLE gargantua password '
${
DBPASS
}
';
EOF
echo
"0.0.6.2 SQL upgrade"
./bin/psql gargantext.ini < devops/postgres/upgrade/0.0.6.2.sql
##############################################################
# Make sure compilation is ok
git pull origin dev
./bin/install
echo
"Upgrade is over"
##############################################################
# Database upgrade
echo
"0.0.6.0 SQL upgrade"
./bin/psql gargantext.ini < devops/postgres/upgrade/0.0.6.0.sql
echo
"0.0.6.1 SQL upgrade"
./bin/psql gargantext.ini < devops/postgres/upgrade/0.0.6.1.sql
echo
"0.0.6.2 SQL upgrade"
./bin/psql gargantext.ini < devops/postgres/upgrade/0.0.6.2.sql
echo
"Executing script haskell upgrade"
~/.local/bin/gargantext-upgrade gargantext.ini
echo
"Upgrade is over"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment