fixed entrypoint to always start.

main
Andre Challier 2024-03-27 15:22:28 +01:00
parent 45682d4808
commit 8bc19664ef
1 changed files with 6 additions and 6 deletions

View File

@ -11,14 +11,14 @@ template_file="/etc/webhook/hook.json.tmpl"
output_file="/etc/webhook/hook.json" output_file="/etc/webhook/hook.json"
# Check if the template file exists # Check if the template file exists
if [ ! -f "$template_file" ]; then if [ ! -f "$template_file" ];
then
echo "Template file $template_file not found." echo "Template file $template_file not found."
exit 1 # exit 1
fi else
envsubst < "$template_file" > "$output_file" envsubst < "$template_file" > "$output_file"
echo "Generated $output_file" echo "Generated $output_file"
fi
# #
# Start webhooks # Start webhooks