From 2a5e4e426a99678aa789368cca2e2d6d0142b92c Mon Sep 17 00:00:00 2001 From: ngosang Date: Thu, 2 Feb 2023 19:25:34 +0100 Subject: [PATCH] Exit if the repository password is not configured --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index ed36911..a9832f6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,6 +8,7 @@ export PASSWORD_FILE="/tmp/restic_passwd" if [ -z "${RESTIC_REPO_PASSWORD}" ]; then if [ -z "${RESTIC_REPO_PASSWORD_FILE}" ]; then echo "You have to define one of these environment variables: RESTIC_REPO_PASSWORD or RESTIC_REPO_PASSWORD_FILE" + exit 1 else cp "${RESTIC_REPO_PASSWORD_FILE}" "${PASSWORD_FILE}" fi