fix(helm): pg version check
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
4b62a2fd0c
commit
1767918a8c
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ spec:
|
|||
args:
|
||||
- |
|
||||
set -x
|
||||
pg_version=$(psql -c "SHOW server_version;" | grep -oP '\d\d+')
|
||||
pg_version=$(psql -c "SHOW server_version;" | xargs | grep -oP '\d+(?=\.)')
|
||||
if [[ $pg_version -le 14 ]]; then
|
||||
echo "[error] postgresql version is $pg_version which is <= 15. Exiting."
|
||||
exit 101
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue