From abbe4b37038e8d479278149f949a76444d437f30 Mon Sep 17 00:00:00 2001 From: Elliott Shugerman Date: Sun, 25 Sep 2022 13:45:17 -0400 Subject: [PATCH] comments --- src/restore.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/restore.sh b/src/restore.sh index 23b1e92..6340645 100644 --- a/src/restore.sh +++ b/src/restore.sh @@ -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