From f2b6e41645269dc256a342a377cdd8a7bdec65f3 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Tue, 9 Jun 2020 15:55:55 +0200 Subject: [PATCH] git_auto_update: Fixed default reload_command to "true" An empty default value would result in an error thrown. --- roles/git_auto_update/templates/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/git_auto_update/templates/update.sh b/roles/git_auto_update/templates/update.sh index 582968f..0c1dec5 100644 --- a/roles/git_auto_update/templates/update.sh +++ b/roles/git_auto_update/templates/update.sh @@ -24,7 +24,7 @@ if [ -z "$GPG_FINGERPRINT" ] || (git verify-tag --raw "$TAG" 2>&1 | grep " VALID git reset --hard; git checkout -q "$TAG"; chown -R "$DEST_USER:$DEST_GROUP" .; - if ! sh -c {{ reload_command | default('') | quote }}; then + if ! sh -c {{ reload_command | default('true') | quote }}; then echo "Failed during reload" >&2; exit 2; fi