install: Pin new apt-based installs to the latest postgresql.

Since we now support Postgres versions from 10 to 12, we might as well
have new installations start on Postgres 12 to avoid unnecessary
migration/upgrade work.
This commit is contained in:
Alex Vandiver 2020-06-15 22:29:17 -07:00 committed by Tim Abbott
parent 6979ed9d97
commit 49a7a66004
1 changed files with 12 additions and 0 deletions

View File

@ -292,6 +292,18 @@ EOF
auto_renew = yes
EOF
fi
if [ -e "/etc/init.d/postgresql" ]; then
case " $os_id $os_id_like " in
*' debian '*)
cat <<EOF
[postgresql]
version = 12
EOF
;;
esac
fi
) > /etc/zulip/zulip.conf
case ",$PUPPET_CLASSES," in