2021-11-02 22:17:58 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
pg_version=$(pg_lsclusters |grep 5432 |awk '{print $1}')
|
|
|
|
|
|
|
|
if [ "${pg_version}" -lt 12 ]; then
|
|
|
|
echo "========================================================================"
|
|
|
|
echo "Upgrade postgresql to at least version 12 before upgrading gitlab."
|
|
|
|
echo "You can use pg_upgradecluster command to upgrade the postgresql version."
|
|
|
|
echo "Aborting gitlab installation..."
|
|
|
|
echo "========================================================================"
|
|
|
|
exit 1
|
|
|
|
fi
|
2021-12-17 00:15:46 +05:30
|
|
|
|
|
|
|
#DEBHELPER#
|