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
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
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
bf7784ae
Commit
bf7784ae
authored
Sep 12, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] script needs backup
parent
a7209f67
Pipeline
#3164
passed with stage
in 91 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
0.0.6.1.sh
devops/upgrade/0.0.6.1.sh
+10
-2
No files found.
devops/upgrade/0.0.6.1.sh
100644 → 100755
View file @
bf7784ae
...
...
@@ -5,7 +5,7 @@
# backup
sudo
apt update
sudo
apt upgrade
sudo
apt
-yy
upgrade
sudo sed
-i
"s/buster/bullseye/g"
/etc/apt/sources.list
sudo
apt update
...
...
@@ -21,16 +21,24 @@ git pull origin dev
#./bin/psql gargantext.ini < devops/postgres/upgrade/0.0.6.1.sql
# ~/.local/bin/gargantext-upgrade
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
sudo
apt
-yy
dist-upgrade
sudo
apt
install
-y
postgresql-14 libpq-dev
sed
-i
"s/DB_PORT = 5432/DB_PORT = 5433/"
gargantext.ini
sudo
-i
-u
postgres bash
<<
EOF
psql < /tmp/backup.dump
EOF
sed
-i
"s/DB_PORT = 5432/DB_PORT = 5433/"
gargantext.ini
DBPASS
=
$(
grep
"DB_PASS"
gargantext.ini |
sed
"s/^.*= //"
)
sudo
-i
-u
postgres bash
<<
EOF
psql < 'ALTER ROLE gargantua password \'
$DBPASS
\'';
EOF
...
...
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