mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-06-10 05:28:00 +00:00
Fix pg_dumpall error detection
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
#! /bin/sh
|
#!/usr/bin/env bash
|
||||||
|
set -Eeo pipefail
|
||||||
set -e
|
|
||||||
|
|
||||||
if [ "${POSTGRES_DB}" = "**None**" -a "${POSTGRES_DB_FILE}" = "**None**" ]; then
|
if [ "${POSTGRES_DB}" = "**None**" -a "${POSTGRES_DB_FILE}" = "**None**" ]; then
|
||||||
echo "You need to set the POSTGRES_DB or POSTGRES_DB_FILE environment variable."
|
echo "You need to set the POSTGRES_DB or POSTGRES_DB_FILE environment variable."
|
||||||
|
|||||||
Reference in New Issue
Block a user