Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Simplify monit port detection
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Jul 27, 2018
1 parent fc1014c commit 02a7b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dockerfiles/readiness-probe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
set -o errexit -o nounset

# Grab monit port
monit_port=$(cat /etc/monitrc | grep "httpd port" | awk '{print $4}')
monit_port=$(awk '/httpd port/ { print $4 }' /etc/monitrc)

# Check that monit thinks everything is ready
curl -s -u admin:${MONIT_PASSWORD} http://127.0.0.1:${monit_port}/_status | gawk '
Expand Down

0 comments on commit 02a7b97

Please sign in to comment.