mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 08:42:33 +01:00
Fix...
Signed-off-by: Julien Del-Piccolo <julien@del-piccolo.com>
This commit is contained in:
parent
83d09394b9
commit
c873f24e56
1 changed files with 6 additions and 6 deletions
|
@ -5,16 +5,16 @@ if [ -n "${DBS_VERSION}" ]; then
|
||||||
wget -q -P /usr/share/docker-bench-security/ https://github.com/docker/docker-bench-security/archive/${DBS_VERSION}.tar.gz
|
wget -q -P /usr/share/docker-bench-security/ https://github.com/docker/docker-bench-security/archive/${DBS_VERSION}.tar.gz
|
||||||
rm -rf /usr/share/docker-bench-security/${DBS_VERSION}/
|
rm -rf /usr/share/docker-bench-security/${DBS_VERSION}/
|
||||||
mkdir -p /usr/share/docker-bench-security/${DBS_VERSION}/
|
mkdir -p /usr/share/docker-bench-security/${DBS_VERSION}/
|
||||||
tar xfz /usr/share/docker-bench-security/${DBS_VERSION}.tar.gz -C /usr/share/docker-bench-security/${DBS_VERSION} --strip 1 --overwrite
|
tar xfzv /usr/share/docker-bench-security/${DBS_VERSION}.tar.gz -C /usr/share/docker-bench-security/${DBS_VERSION} --strip 1 --overwrite
|
||||||
rm -rfv /usr/share/docker-bench-security/${DBS_VERSION}.tar.gz
|
rm -rfv /usr/share/docker-bench-security/${DBS_VERSION}.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $(find /usr/share/docker-bench-security/ | wc -l) -gt 1 ]; then
|
if [ $(find /usr/share/docker-bench-security/${DBS_VERSION}/ | wc -l) -gt 1 ]; then
|
||||||
rm -rf /usr/local/bin/docker-bench-security.sh /usr/local/bin/helper_lib.sh /usr/local/bin/output_lib.sh
|
rm -rfv /usr/local/bin/docker-bench-security.sh /usr/local/bin/helper_lib.sh /usr/local/bin/output_lib.sh
|
||||||
rm -rf /usr/local/bin/tests/*
|
rm -rfv /usr/local/bin/tests/*
|
||||||
|
|
||||||
cp -r /usr/share/docker-bench-security/${DBS_VERSION}/*.sh /usr/local/bin/
|
cp -rv /usr/share/docker-bench-security/${DBS_VERSION}/*.sh /usr/local/bin/
|
||||||
cp -r /usr/share/docker-bench-security/${DBS_VERSION}/tests/*.sh /usr/local/bin/tests/
|
cp -rv /usr/share/docker-bench-security/${DBS_VERSION}/tests/*.sh /usr/local/bin/tests/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue