mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-22 08:08:07 +00:00
cbe02e1d5e
The entrypoint.sh had a typo where it tried coping files from "/kube-bench" instead of just "/".
15 lines
444 B
Bash
Executable File
15 lines
444 B
Bash
Executable File
#!/bin/sh
|
|
if [ -d /host ]; then
|
|
mkdir -p /host/cfg/
|
|
yes | cp -rf /cfg/* /host/cfg/
|
|
yes | cp -rf /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
|