diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-05-09 14:00:59 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2018-05-14 10:08:15 +0000 |
commit | cc5f5b2b41db293a9ce7ef554adde9e776fd1ad2 (patch) | |
tree | 4afd49f607f3b11f077aa61a8187585dcfa98dbe /libmlr/bin | |
parent | 5224e612edc9f5af2f93051a41000a36ca6c5c93 (diff) |
update bootstrap section of scripts
Diffstat (limited to 'libmlr/bin')
-rwxr-xr-x | libmlr/bin/xml2cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libmlr/bin/xml2cpp b/libmlr/bin/xml2cpp index 05ae9b9d933..093ee88b8bc 100755 --- a/libmlr/bin/xml2cpp +++ b/libmlr/bin/xml2cpp @@ -54,7 +54,16 @@ findroot () { exit 1 } +findhost () { + if [ "${VESPA_HOSTNAME}" = "" ]; then + VESPA_HOSTNAME=$(vespa-detect-hostname) || exit 1 + fi + vespa-validate-hostname "${VESPA_HOSTNAME}" || exit 1 + export VESPA_HOSTNAME +} + findroot +findhost # END environment bootstrap section |