From 999f151c425d9a25ee01b22e54ecbe10a8691add Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Mon, 3 Jun 2024 12:52:13 +0300 Subject: [PATCH] fix(elasticsearch): `netcat` package name in Debian-based distros --- features/src/elasticsearch/devcontainer-feature.json | 2 +- features/src/elasticsearch/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/src/elasticsearch/devcontainer-feature.json b/features/src/elasticsearch/devcontainer-feature.json index cf209538..669d5344 100644 --- a/features/src/elasticsearch/devcontainer-feature.json +++ b/features/src/elasticsearch/devcontainer-feature.json @@ -2,7 +2,7 @@ "id": "elasticsearch", "name": "Elasticsearch", "description": "Sets up Elasticsearch into the Dev Environment", - "version": "1.1.0", + "version": "1.1.1", "containerEnv": { "ES_TMPDIR": "/usr/share/elasticsearch/tmp" }, diff --git a/features/src/elasticsearch/install.sh b/features/src/elasticsearch/install.sh index b2a518e1..f1a6cff2 100755 --- a/features/src/elasticsearch/install.sh +++ b/features/src/elasticsearch/install.sh @@ -60,7 +60,7 @@ if [ "${ENABLED}" = "true" ]; then # Elastcsearch's Dockerfile says ES need netcat # https://github.com/elastic/dockerfiles/blob/15cf539642c8466777c84a3dd969e9678f31605c/elasticsearch/Dockerfile#L90 if ! hash nc >/dev/null 2>&1; then - PACKAGES="${PACKAGES} netcat" + PACKAGES="${PACKAGES} netcat-openbsd" fi if [ -n "${PACKAGES}" ]; then