Prevented dhparams regenerating if they already exist

This commit is contained in:
MrMeeb 2022-06-21 11:58:46 +00:00
parent 591e35c91a
commit e130fc041e

2
run.sh
View File

@ -71,7 +71,7 @@ else
exit 8
fi
if [[ $GENERATE_DHPARAM = true ]]
if [[ $GENERATE_DHPARAM = true ]] && [[ ! -s /config/letsencrypt/keys/ssl-dhparams.pem ]]
then
echo "Generating Diffie-Hellman keys, saved to /config/letsencrypt/keys"
openssl dhparam -out /config/letsencrypt/keys/ssl-dhparams.pem 4096