diff --git a/harden b/harden index 583c3f0..ca1c535 100755 --- a/harden +++ b/harden @@ -492,6 +492,9 @@ EOF } function dynamicDockerPortsCronjob { +# Part of the code responsible for the comparison +# of the arrays was taken from: +# https://stackoverflow.com/questions/2312762/compare-difference-of-two-arrays-in-bash sudo mkdir -p /root/bin cat << 'TOHERE' | sudo tee /root/bin/dynamic_docker_ports_cronjob.sh > /dev/null 2>&1 #!/usr/bin/env bash