Skip to content

Commit

Permalink
Merge pull request #20 from admsev/patch-1
Browse files Browse the repository at this point in the history
fix(postgresql): Support IPv6
  • Loading branch information
itsmechlark committed May 8, 2024
2 parents 25d8842 + 1c4d1e0 commit 3db6c0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/postgresql/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "PostgreSQL",
"id": "postgresql",
"version": "1.5.0",
"version": "1.6.0",
"description": "PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.",
"options": {
"version": {
Expand Down
2 changes: 2 additions & 0 deletions src/postgresql/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ chown -R postgres:postgres $PGDATA \
&& echo "listen_addresses = '*'" >> /etc/postgresql/${version_major}/main/postgresql.conf \
&& echo "data_directory = '$PGDATA'" >> /etc/postgresql/${version_major}/main/postgresql.conf \
&& echo "host all all 0.0.0.0/0 trust" > /etc/postgresql/${version_major}/main/pg_hba.conf \
&& echo "host all all ::/0 trust" >> /etc/postgresql/${version_major}/main/pg_hba.conf \
&& echo "host all all ::1/128 trust" >> /etc/postgresql/${version_major}/main/pg_hba.conf \
&& sudo -H -u postgres sh -c "/usr/lib/postgresql/${version_major}/bin/initdb -D $PGDATA --auth-local trust --auth-host scram-sha-256" \
&& sudo /etc/init.d/postgresql start \
&& pg_isready -t 60
Expand Down

0 comments on commit 3db6c0d

Please sign in to comment.