Skip to content

Commit

Permalink
Fixed continuous config appending
Browse files Browse the repository at this point in the history
  • Loading branch information
duanehutchins committed Jul 21, 2017
1 parent 5ec992a commit 098da53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/gen-pgbouncer-conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else
fi

mkdir -p /app/vendor/stunnel/var/run/stunnel/
cat >> /app/vendor/stunnel/stunnel-pgbouncer.conf << EOFEOF
cat > /app/vendor/stunnel/stunnel-pgbouncer.conf << EOFEOF
foreground = yes
options = NO_SSLv2
Expand All @@ -32,7 +32,7 @@ ciphers = HIGH:!ADH:!AECDH:!LOW:!EXP:!MD5:!3DES:!SRP:!PSK:@STRENGTH
debug = ${PGBOUNCER_STUNNEL_LOGLEVEL:-notice}
EOFEOF

cat >> /app/vendor/pgbouncer/pgbouncer.ini << EOFEOF
cat > /app/vendor/pgbouncer/pgbouncer.ini << EOFEOF
[pgbouncer]
listen_addr = 127.0.0.1
listen_port = 6000
Expand Down Expand Up @@ -86,7 +86,7 @@ connect = $DB_HOST:$DB_PORT
retry = ${PGBOUNCER_CONNECTION_RETRY:-"no"}
EOFEOF

cat >> /app/vendor/pgbouncer/users.txt << EOFEOF
cat > /app/vendor/pgbouncer/users.txt << EOFEOF
"$DB_USER" "$DB_MD5_PASS"
EOFEOF

Expand Down

0 comments on commit 098da53

Please sign in to comment.