fix(helm): pg version check

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2024-09-03 17:04:05 +02:00
parent 4b62a2fd0c
commit 1767918a8c

View file

@ -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