From 0ea6694a197be33a8550d2dbc4be219644ddb4f1 Mon Sep 17 00:00:00 2001 From: Michael Hrivnak Date: Thu, 12 Dec 2024 09:59:37 -0500 Subject: [PATCH] ensures the entrypoint exits non-zero when an error happens fixes #40 --- entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 7903ae1..bc73c31 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,7 @@ #!/bin/sh + +set -e + if [ ! -f "/data/g2g.db" ]; then echo "No database found, intializing gpodder2go ..." /gpodder2go init