Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
73da9760
Verified
Commit
73da9760
authored
Nov 23, 2018
by
Florian Pritz
Browse files
upgrade_pg.sh: Document what to do when major version error happens
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
c8c361f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/postgres/files/upgrade_pg.sh
View file @
73da9760
...
...
@@ -6,6 +6,8 @@ TO_VERSION=$(pacman -Q postgresql | grep -Po '(?<=postgresql )[0-9]+\.[0-9]')
to_major
=
$(
echo
"
$TO_VERSION
"
|
awk
-F
'.'
'{print $1}'
)
to_minor
=
$(
echo
"
$TO_VERSION
"
|
awk
-F
'.'
'{print $2}'
)
if
[[
${
to_major
}
-ne
11
]]
;
then
# NOTE: When this happens you should check the changelog and add any
# necessary changes here. Then bump the version check.
echo
"WARNING: major upgrade detected, aborting..."
exit
1
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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