summaryrefslogtreecommitdiffstats
path: root/.github/scripts/docker-test.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-14 18:12:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-14 18:12:10 +0000
commitb5321aff06d6ea8d730d62aec2ffd8e9271c1ffc (patch)
tree36c41e35994786456154f9d3bf88c324763aeea4 /.github/scripts/docker-test.sh
parentAdding upstream version 1.33.1. (diff)
downloadnetdata-c13434eeaa930a509fb022b2e7fb4f2d60319c9d.tar.xz
netdata-c13434eeaa930a509fb022b2e7fb4f2d60319c9d.zip
Adding upstream version 1.34.0.upstream/1.34.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/scripts/docker-test.sh')
-rwxr-xr-x.github/scripts/docker-test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/scripts/docker-test.sh b/.github/scripts/docker-test.sh
index 795711b1a..22821d17e 100755
--- a/.github/scripts/docker-test.sh
+++ b/.github/scripts/docker-test.sh
@@ -33,7 +33,9 @@ wait_for() {
printf "OK\n"
}
-apt-get update && apt-get upgrade -y && apt get install -y netcat
+if [ -z "$(command -v nc 2>/dev/null)" ] && [ -z "$(command -v netcat 2>/dev/null)" ]; then
+ sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y netcat
+fi
docker run -d --name=netdata \
-p 19999:19999 \