summaryrefslogtreecommitdiffstats
path: root/clustercontroller-standalone
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 /clustercontroller-standalone
parent5224e612edc9f5af2f93051a41000a36ca6c5c93 (diff)
update bootstrap section of scripts
Diffstat (limited to 'clustercontroller-standalone')
-rwxr-xr-xclustercontroller-standalone/src/main/sh/fleetcontroller-start9
1 files changed, 9 insertions, 0 deletions
diff --git a/clustercontroller-standalone/src/main/sh/fleetcontroller-start b/clustercontroller-standalone/src/main/sh/fleetcontroller-start
index 647480e5e17..0cf0a9b0f88 100755
--- a/clustercontroller-standalone/src/main/sh/fleetcontroller-start
+++ b/clustercontroller-standalone/src/main/sh/fleetcontroller-start
@@ -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