fixed entrypoint to always start.
parent
45682d4808
commit
8bc19664ef
|
|
@ -11,15 +11,15 @@ 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
|
||||||
|
else
|
||||||
|
envsubst < "$template_file" > "$output_file"
|
||||||
|
echo "Generated $output_file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
envsubst < "$template_file" > "$output_file"
|
|
||||||
|
|
||||||
echo "Generated $output_file"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start webhooks
|
# Start webhooks
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue