Stop exporting HOSTNAME from scripts

Today we explicitly export the HOSTNAME variable from scripts. This is
probably a relic from the days when the scripts were not run on bash but
instead assume a POSIX-compliant shell only where HOSTNAME is not
guaranteed to exist. Yet, bash guarantees that HOSTNAME is set so we do
not need to set it in scripts. This commit removes this legacy.

Relates elastic/x-pack-elasticsearch#2047

Original commit: elastic/x-pack-elasticsearch@7b833e061c
This commit is contained in:
Jason Tedor 2017-07-20 22:28:01 +09:00 committed by GitHub
parent dce13b87c3
commit 814c1a21f9
7 changed files with 0 additions and 14 deletions

View File

@ -55,8 +55,6 @@ if [ -z "$CONF_DIR" ]; then
fi
fi
export HOSTNAME=`hostname -s`
# include x-pack jars in classpath
ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/plugins/x-pack/*"

View File

@ -55,8 +55,6 @@ if [ -z "$CONF_DIR" ]; then
fi
fi
export HOSTNAME=`hostname -s`
# include watcher jars in classpath
ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/plugins/x-pack/*"

View File

@ -53,8 +53,6 @@ elif [ -f "/etc/default/elasticsearch" ]; then
. "/etc/default/elasticsearch"
fi
export HOSTNAME=`hostname -s`
# include x-pack jars in classpath
ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/plugins/x-pack/*"

View File

@ -55,8 +55,6 @@ if [ -z "$CONF_DIR" ]; then
fi
fi
export HOSTNAME=`hostname -s`
# include x-pack jars in classpath
ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/plugins/x-pack/*"

View File

@ -55,8 +55,6 @@ if [ -z "$CONF_DIR" ]; then
fi
fi
export HOSTNAME=`hostname -s`
# include x-pack jars in classpath
ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/plugins/x-pack/*"

View File

@ -55,8 +55,6 @@ if [ -z "$CONF_DIR" ]; then
fi
fi
export HOSTNAME=`hostname -s`
# include x-pack jars in classpath
ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/plugins/x-pack/*"

View File

@ -55,8 +55,6 @@ if [ -z "$CONF_DIR" ]; then
fi
fi
export HOSTNAME=`hostname -s`
# include x-pack jars in classpath
ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/plugins/x-pack/*"