8000 fix: add `set -eou pipefail` and redirect stderr to stdout · attentive-test/postgres@c741ea7 · GitHub
[go: up one dir, main page]

Skip to content

Commit c741ea7

Browse files
committed
fix: add set -eou pipefail and redirect stderr to stdout
1 parent c2a036c commit c741ea7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ansible/files/start-envoy.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/usr/bin/env sh
1+
#!/usr/bin/env bash
2+
set -eou pipefail
23
# Workaround using `tee` to get `/dev/stdout` access logging to work, see:
34
# https://github.com/envoyproxy/envoy/issues/8297#issuecomment-620659781
4-
exec /opt/envoy --config-path /etc/envoy/envoy.yaml --restart-epoch "$RESTART_EPOCH" | tee
5+
exec /opt/envoy --config-path /etc/envoy/envoy.yaml --restart-epoch "$RESTART_EPOCH" 2>&1 | tee

0 commit comments

Comments
 (0)
0