mirror of
https://github.com/garraflavatra/docker-volume-s3-backup.git
synced 2025-05-17 13:14:38 +00:00
comments
This commit is contained in:
parent
9f8d2acb30
commit
abbe4b3703
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user