Fix PostgreSQL version (#364)

This commit is contained in:
Guangming Zhou 2021-01-09 03:44:32 +08:00 committed by GitHub
parent 3a63d467fd
commit 1805dd7c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ systemctl enable php-fpm
systemctl enable nginx
systemctl enable freeswitch
systemctl enable memcached
systemctl enable postgresql-9.4
systemctl enable postgresql-9.6
systemctl daemon-reload
systemctl restart freeswitch

View File

@ -24,7 +24,7 @@ yum -y install postgresql96-server postgresql96-contrib postgresql96 postgresql9
verbose "Initalize PostgreSQL database"
#initialize the database
/usr/pgsql-9.4/bin/postgresql96-setup initdb
/usr/pgsql-9.6/bin/postgresql96-setup initdb
#allow loopback
sed -i 's/\(host *all *all *127.0.0.1\/32 *\)ident/\1md5/' /var/lib/pgsql/9.6/data/pg_hba.conf