1
0
mirror of https://github.com/garraflavatra/docker-volume-s3-backup.git synced 2025-05-17 05:14:37 +00:00
This commit is contained in:
Elliott Shugerman 2022-09-25 13:45:17 -04:00
parent 9f8d2acb30
commit abbe4b3703

View File

@ -1,6 +1,6 @@
#! /bin/sh
set -u
set -u # `-e` omitted intentionally, but i can't remember why exactly :'(
set -o pipefail
if [ -z "$S3_BUCKET" ]; then
@ -14,7 +14,7 @@ if [ -z "$POSTGRES_DATABASE" ]; then
fi
if [ -z "$POSTGRES_HOST" ]; then
# TODO: what is this?
# https://docs.docker.com/network/links/#environment-variables
if [ -n "$POSTGRES_PORT_5432_TCP_ADDR" ]; then
POSTGRES_HOST=$POSTGRES_PORT_5432_TCP_ADDR
POSTGRES_PORT=$POSTGRES_PORT_5432_TCP_PORT