Export SHORT_HOSTNAME

Exporting SHORT_HOSTNAME from airship-in-a-bottle.sh for deploy-airship.sh

Change-Id: I63c449163a4df981765b3f7c580078944a597829
This commit is contained in:
Roman Gorshunov 2018-05-20 10:46:01 +02:00
parent ee7fc61fb3
commit 2f89142afd
1 changed files with 3 additions and 2 deletions

View File

@ -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