Commit b826f72d authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'tc-fix-host-inconsistency' into 'master'

Read from hostname instead of host

See merge request gitlab-org/gitlab-development-kit!670
parents ac91b1dd d43f0efd
......@@ -5,8 +5,8 @@
main() {
# Try to read the gitlab-workhorse host:port from the environments
if [ "x${host}" = x ]; then
# Try a host file
host="$(cat host 2>/dev/null)"
# Try a host/hostname file
host="$(cat host 2>/dev/null || cat hostname 2>/dev/null)"
if [ "x${port}" = x ]; then
# Try a port file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment