You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
468 B
15 lines
468 B
#!/bin/sh
|
|
if [ -d /host ]; then
|
|
mkdir -p /host/cfg/
|
|
yes | cp -rf ./kube-bench/cfg/* /host/cfg/
|
|
yes | cp -rf ./kube-bench/kube-bench /host/
|
|
echo "==============================================="
|
|
echo "kube-bench is now installed on your host "
|
|
echo "Run ./kube-bench to perform a security check "
|
|
echo "==============================================="
|
|
else
|
|
echo "Usage:"
|
|
echo " docker run --rm -v \`pwd\`:/host aquasec/kube-bench"
|
|
exit
|
|
fi
|