1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/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
# now gitlab needs to write to this directory, so this should be a symlink to
# /var/lib/gitlab, but there are generated files in this directory
if [ -d /usr/share/gitlab/locale ]; then \
rm -rf /usr/share/gitlab/locale/* ]
fi
#DEBHELPER#
|