Skip to content

Commit

Permalink
Configure postgresql after initial start in Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
hrosenbe committed Jan 23, 2018
1 parent cbd6476 commit 75f342b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dockerImages/postgresql/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ perl /updateResolveConf.pl
if [ $# -gt 0 ]; then
eval "$* &"
else
echo "Configure postgresql.conf"
perl /configure.pl

echo "start postgresql"
/pg-init.sh &
fi
Expand Down
3 changes: 3 additions & 0 deletions dockerImages/postgresql/pg-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ rm -f /mnt/dbData/pg_log/*
rm -f /mnt/dbData/postgresql/postmaster.pid
sudo -u postgres /usr/pgsql-${PG_MAJOR}/bin/pg_resetxlog -f /mnt/dbData/postgresql

echo "Configure postgresql.conf"
perl /configure.pl

# Start postgresql
sudo -u postgres /usr/pgsql-${PG_MAJOR}/bin/postgres -D /mnt/dbData/postgresql

Expand Down

0 comments on commit 75f342b

Please sign in to comment.