Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 3510849

Browse files
edmorleycyberdelia
authored andcommitted
Overwrite any existing stunnel.conf rather than appending (#23)
Otherwise running `start-stunnel <COMMAND>` multiple times (such as in a one-off dyno when running a command and then killing it) will result in an stunnel.conf that has invalid syntax due to the global options being appended after the per-server header. Based on: heroku/heroku-buildpack-pgbouncer#83
1 parent 02c0dd4 commit 3510849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/stunnel-conf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ n=1
44

55
mkdir -p /app/vendor/stunnel/var/run/stunnel/
66

7-
cat >> /app/vendor/stunnel/stunnel.conf << EOFEOF
7+
cat > /app/vendor/stunnel/stunnel.conf << EOFEOF
88
foreground = yes
99
1010
pid = /app/vendor/stunnel/stunnel4.pid

0 commit comments

Comments
 (0)