diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2022-03-15 07:18:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 07:18:56 -0400 |
commit | 1af82e4afb59d226c41305eecacfc794696b0821 (patch) | |
tree | 88d1edeac6cba917c7c78744a1fc3f1f3f14851d /.github/scripts | |
parent | 410191bcd25958c9a12241dac28519c7009944b6 (diff) |
Fix update/install commands in Docker image test code. (#12378)
* Fix update/install commands in Docker image test code.
* Make netcat install conditional.
Diffstat (limited to '.github/scripts')
-rwxr-xr-x | .github/scripts/docker-test.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/scripts/docker-test.sh b/.github/scripts/docker-test.sh index 795711b1af..22821d17eb 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 \ |