Commit d43f0efd authored by Toon Claes's avatar Toon Claes

Allow using hostname or host as file

Some people use `host`, some people write it to `hostname`. So allow
both.
parent 7ee89025
......@@ -5,8 +5,8 @@
main() {
# Try to read the gitlab-workhorse host:port from the environments
if [ "x${host}" = x ]; then
# Try a hostname file
host="$(cat hostname 2>/dev/null)"
# Try a host/hostname file
host="$(cat host 2>/dev/null || cat hostname 2>/dev/null)"
fi
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