From 8bc19664ef46c320b1fd0eb44564f9540e97f64a Mon Sep 17 00:00:00 2001 From: Andre Challier Date: Wed, 27 Mar 2024 15:22:28 +0100 Subject: [PATCH] fixed entrypoint to always start. --- webhooks-git/entrypoint.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webhooks-git/entrypoint.sh b/webhooks-git/entrypoint.sh index cc2f8de..de48715 100644 --- a/webhooks-git/entrypoint.sh +++ b/webhooks-git/entrypoint.sh @@ -11,15 +11,15 @@ template_file="/etc/webhook/hook.json.tmpl" output_file="/etc/webhook/hook.json" # Check if the template file exists -if [ ! -f "$template_file" ]; then +if [ ! -f "$template_file" ]; +then echo "Template file $template_file not found." - exit 1 + # exit 1 +else + envsubst < "$template_file" > "$output_file" + echo "Generated $output_file" fi -envsubst < "$template_file" > "$output_file" - -echo "Generated $output_file" - # # Start webhooks #