|
@@ -26,7 +26,7 @@ sudo su - postgres bash -c 'createuser -U postgres --createdb --createrole --sup |
|
|
PG_HBA=$(find /etc/postgresql -mindepth 1 -maxdepth 1 -type d | sort | tail -1)/main/pg_hba.conf |
|
|
PG_HBA=$(find /etc/postgresql -mindepth 1 -maxdepth 1 -type d | sort | tail -1)/main/pg_hba.conf |
|
|
sudo cat ${PG_HBA} | sed -e 's/ peer/ trust/g' | sed -e 's/ md5/ trust/g' > /tmp/pg_hba.conf || die "Error filtering ${PG_HBA}" |
|
|
sudo cat ${PG_HBA} | sed -e 's/ peer/ trust/g' | sed -e 's/ md5/ trust/g' > /tmp/pg_hba.conf || die "Error filtering ${PG_HBA}" |
|
|
sudo bash -c "cat /tmp/pg_hba.conf > ${PG_HBA}" || die "Error rewriting ${PG_HBA}" |
|
|
sudo bash -c "cat /tmp/pg_hba.conf > ${PG_HBA}" || die "Error rewriting ${PG_HBA}" |
|
|
sudo service postgresql restart || die "Error restaring pgsql" |
|
|
|
|
|
|
|
|
sudo service postgresql restart || die "Error restarting pgsql" |
|
|
|
|
|
|
|
|
# Create DB user 'bubble', with the ability to create databases |
|
|
# Create DB user 'bubble', with the ability to create databases |
|
|
createuser --createdb bubble || die "Error creating bubble DB user" |
|
|
createuser --createdb bubble || die "Error creating bubble DB user" |
|
|