Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix: curl buffer problem fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
alanivey committed Nov 6, 2023
1 parent 4f66f26 commit eea4d3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ ${CONFIG_OPTION} = {{ getv("${TEMPLATE_OPTION}") }}
EOS
done
# Add clustering settings (keep template logic in Remco for DNS lookups of SERVICE_NAME)
if curl -fsSL "$DHIS2_CONFIGKEY_URL" | grep -q 'CLUSTER_HOSTNAME(\s*"cluster\.hostname",' ; then
# See https://stackoverflow.com/a/28879552
if { curl -fsSL "$DHIS2_CONFIGKEY_URL" | tac | tac | grep -q 'CLUSTER_HOSTNAME(\s*"cluster\.hostname",' ; } ; then
cat dhis-cluster.conf.tmpl >> /tmp/.dhis.conf.tmpl
fi
# Add read-replica settings
Expand Down

0 comments on commit eea4d3e

Please sign in to comment.