-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dvm changes to get external postgres working.
Signed-off-by: Prajakta Purohit <[email protected]>
- Loading branch information
1 parent
6264d09
commit da6f5da
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" > /etc/apt/sources.list.d/pgdg.list | ||
echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" > /etc/apt/sources.list.d/pgdg.list | ||
wget --quiet https://www.postgresql.org/media/keys/ACCC4CF8.asc | ||
apt-key add ACCC4CF8.asc | ||
apt-get update | ||
apt-get install postgresql-9.2 -y | ||
echo "host all all #{IPS[:cs]}/32 md5" >> /etc/postgresql/9.2/main/pg_hba.conf | ||
echo "listen_addresses='*'" >> /etc/postgresql/9.2/main/postgresql.conf | ||
apt-get install postgresql-9.6 -y | ||
echo "host all all $1/32 md5" >> /etc/postgresql/9.6/main/pg_hba.conf | ||
echo "listen_addresses='*'" >> /etc/postgresql/9.6/main/postgresql.conf | ||
service postgresql restart | ||
export PATH=/usr/lib/postgresql/9.2/bin:$PATH | ||
export PATH=/usr/lib/postgresql/9.6/bin:$PATH | ||
sudo -u postgres psql -c "CREATE USER bofh SUPERUSER ENCRYPTED PASSWORD 'i1uvd3v0ps';" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters