We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b731b2e + d162e09 commit 4cc44fbCopy full SHA for 4cc44fb
cluster/images/etcd/migrate-if-needed.sh
@@ -46,7 +46,7 @@ set -o nounset
46
BUNDLED_VERSIONS="3.0.17, 3.1.12, 3.2.24, 3.3.17, 3.4.7"
47
48
# shellcheck disable=SC2039
49
-ETCD_NAME="${ETCD_NAME:-etcd-$HOSTNAME}"
+ETCD_NAME="${ETCD_NAME:-etcd-${ETCD_HOSTNAME:-$(hostname -s)}}"
50
if [ -z "${DATA_DIRECTORY:-}" ]; then
51
echo "DATA_DIRECTORY variable unset - unexpected failure"
52
exit 1
0 commit comments