Skip to content

Commit

Permalink
Merge pull request #91 from zalando/feature/create_pglog_directory
Browse files Browse the repository at this point in the history
Create a directory for storing logs of PostgreSQL
  • Loading branch information
feikesteenbergen committed Sep 8, 2016
2 parents 05613d1 + eed4dff commit b362fb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions postgres-appliance/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ RUN curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION}/etc
ENV PGHOME=/home/postgres
ENV PGROOT=$PGHOME/pgdata/pgroot
ENV PGDATA=$PGROOT/data
ENV PGLOG=$PGROOT/pg_log
ENV WALE_ENV_DIR=$PGHOME/etc/wal-e.d/env

# Set PGHOME as a login directory for the PostgreSQL user.
Expand Down
1 change: 1 addition & 0 deletions postgres-appliance/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pgrep supervisord > /dev/null
if [ $? -ne 1 ]; then echo "ERROR: Supervisord is already running"; exit 1; fi

mkdir -p "$PGROOT" && chown -R postgres:postgres "$PGROOT"
mkdir -p "$PGLOG" && chown -R postgres:postgres "$PGLOG"

python3 /configure_spilo.py all
(
Expand Down

0 comments on commit b362fb6

Please sign in to comment.