Update postgresql.sh

The link of the rpm has changed, I consult on PostgreSQL Official website (https://www.postgresql.org/download/linux/redhat/)

Script to download and install obtained from PostgreSQL
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo yum install -y postgresql96-server
sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb
sudo systemctl enable postgresql-9.6
sudo systemctl start postgresql-9.6
This commit is contained in:
slopted 2021-09-30 10:06:13 -05:00 committed by GitHub
parent 816f18c977
commit a772e35187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ password=$(dd if=/dev/urandom bs=1 count=20 2>/dev/null | base64)
#included in the distribution
#rpm -ivh --quiet http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm
rpm -ivh --quiet https://yum.postgresql.org/9.6/redhat/rhel-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
#rpm -ivh --quiet https://yum.postgresql.org/9.6/redhat/rhel-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
rpm -ivh --quiet https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum -y update
#yum -y install postgresql94-server postgresql94-contrib postgresql94
yum -y install postgresql96-server postgresql96-contrib postgresql96 postgresql96-libs postgresql96-devel