From 2f89142afd6e39330e9ebb51eff1b0d0e4966cdc Mon Sep 17 00:00:00 2001 From: Roman Gorshunov Date: Sun, 20 May 2018 10:46:01 +0200 Subject: [PATCH] Export SHORT_HOSTNAME Exporting SHORT_HOSTNAME from airship-in-a-bottle.sh for deploy-airship.sh Change-Id: I63c449163a4df981765b3f7c580078944a597829 --- manifests/dev_single_node/airship-in-a-bottle.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/dev_single_node/airship-in-a-bottle.sh b/manifests/dev_single_node/airship-in-a-bottle.sh index 2ae13daf..07b4460d 100755 --- a/manifests/dev_single_node/airship-in-a-bottle.sh +++ b/manifests/dev_single_node/airship-in-a-bottle.sh @@ -63,9 +63,10 @@ if [[ ! "$YN_IP" =~ ^([yY]|"")$ ]]; then read -p "What is your LOCAL IP? " LOCAL_IP fi -# Shells out to get the hostname to avoid some config conflicts +# Shells out to get the hostname for the single-node deployment to avoid some +# config conflicts set -x -SHORT_HOSTNAME=$(hostname -s) +export SHORT_HOSTNAME=$(hostname -s) set +x # Updates the /etc/hosts file