aboutsummaryrefslogtreecommitdiffstats
path: root/application-preprocessor
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2018-05-09 14:00:59 +0000
committerArne Juul <arnej@yahoo-inc.com>2018-05-14 10:08:15 +0000
commitcc5f5b2b41db293a9ce7ef554adde9e776fd1ad2 (patch)
tree4afd49f607f3b11f077aa61a8187585dcfa98dbe /application-preprocessor
parent5224e612edc9f5af2f93051a41000a36ca6c5c93 (diff)
update bootstrap section of scripts
Diffstat (limited to 'application-preprocessor')
-rw-r--r--application-preprocessor/src/main/sh/vespa-preprocess-application9
1 files changed, 9 insertions, 0 deletions
diff --git a/application-preprocessor/src/main/sh/vespa-preprocess-application b/application-preprocessor/src/main/sh/vespa-preprocess-application
index b238af04e3b..0912f3720f4 100644
--- a/application-preprocessor/src/main/sh/vespa-preprocess-application
+++ b/application-preprocessor/src/main/sh/vespa-preprocess-application
@@ -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