2017-06-20 06:53:34 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -d /host ]; then
|
|
|
|
mkdir -p /host/cfg/
|
2018-01-14 22:59:27 +00:00
|
|
|
yes | cp -rf /cfg/* /host/cfg/
|
|
|
|
yes | cp -rf /kube-bench /host/
|
2017-06-20 07:42:37 +00:00
|
|
|
echo "==============================================="
|
|
|
|
echo "kube-bench is now installed on your host "
|
|
|
|
echo "Run ./kube-bench to perform a security check "
|
|
|
|
echo "==============================================="
|
2017-06-20 06:53:34 +00:00
|
|
|
else
|
2017-06-20 07:10:36 +00:00
|
|
|
echo "Usage:"
|
|
|
|
echo " docker run --rm -v \`pwd\`:/host aquasec/kube-bench"
|
2017-06-20 06:53:34 +00:00
|
|
|
exit
|
|
|
|
fi
|