diff --git a/bin/docker-entrypoint.sh b/bin/docker-entrypoint.sh index 51ec676..28e95d4 100755 --- a/bin/docker-entrypoint.sh +++ b/bin/docker-entrypoint.sh @@ -10,6 +10,29 @@ ssl_cert='/etc/ssl/certs/certificate.crt' export GNUPGHOME="/home/www-data/.gnupg" +entropy_check() { + local entropy_avail + + entropy_avail=$(cat /proc/sys/kernel/random/entropy_avail) + + if [ "$entropy_avail" -lt 2000 ]; then + + cat <