summaryrefslogtreecommitdiffstats
path: root/clustercontroller-standalone
diff options
context:
space:
mode:
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