Update postgresql version from 9.4 to 9.6 to prevent installation issue on Centos

* modfied finish.sh to prevent failure during postgresql user creation
* update postgresql.sh to install postgresql-9.6
This commit is contained in:
cargreg
2020-12-17 00:45:00 +01:00
committed by GitHub
parent 78aa6f9cd2
commit 881c60fb9f
2 changed files with 21 additions and 19 deletions

View File

@@ -19,8 +19,8 @@ fi
export PGPASSWORD=$database_password
#update the database password
sudo -u postgres /usr/pgsql-9.4/bin/psql -c "ALTER USER fusionpbx WITH PASSWORD '$database_password';"
sudo -u postgres /usr/pgsql-9.4/bin/psql -c "ALTER USER freeswitch WITH PASSWORD '$database_password';"
sudo -u postgres /usr/pgsql-9.6/bin/psql -c "ALTER USER fusionpbx WITH PASSWORD '$database_password';"
sudo -u postgres /usr/pgsql-9.6/bin/psql -c "ALTER USER freeswitch WITH PASSWORD '$database_password';"
#add the config.php
mkdir -p /etc/fusionpbx