Add PostgreSQL server 12 and 13

This commit is contained in:
FusionPBX 2020-11-15 21:59:47 -07:00 committed by GitHub
parent b61fbf40cc
commit 46f7cbac90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -24,9 +24,17 @@ password=$(cat /dev/random | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 20)
echo "Install PostgreSQL and create the database and users\n"
#postgres install
if [ ."$database_version" = ."13" ]; then
pkg install --yes postgresql13-server
#cd /usr/ports/databases/postgresql13-server/ && make install clean BATCH=yes
fi
if [ ."$database_version" = ."12" ]; then
pkg install --yes postgresql12-server
#cd /usr/ports/databases/postgresql12-server/ && make install clean BATCH=yes
fi
if [ ."$database_version" = ."11" ]; then
pkg install --yes postgresql11-server
#cd /usr/ports/databases/postgresql10-server/ && make install clean BATCH=yes
#cd /usr/ports/databases/postgresql11-server/ && make install clean BATCH=yes
fi
if [ ."$database_version" = ."10" ]; then
pkg install --yes postgresql10-server