Fix update/install commands in Docker image test code. (#12378)
* Fix update/install commands in Docker image test code. * Make netcat install conditional.
Austin S. Hemmelgarn committed
Mar 15, 2022 at 07:18 UTC
1af82e4afb59d226c41305eecacfc794696b0821
1 file changed
+3
-1
.github/scripts/docker-test.sh
+3
-1
@@ -33,7 +33,9 @@ wait_for() {
33
printf "OK\n"
34
}
35
36
-apt-get update && apt-get upgrade -y && apt get install -y netcat
36
+if [ -z "$(command -v nc 2>/dev/null)" ] && [ -z "$(command -v netcat 2>/dev/null)" ]; then
37
+ sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y netcat
38
+fi
39
40
docker run -d --name=netdata \
41
-p 19999:19999 \