diff --git a/src/functions.sh b/src/functions.sh index f5eb4b4..a6032a3 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -10,11 +10,11 @@ random_password() { generate_dhparam() { openssl dhparam -out /etc/nginx/dhparam.pem 2048 - cat << EOF > /etc/cron.weekly/generate-dhparams + cat << EOF > /etc/cron.monthly/generate-dhparams #!/bin/bash openssl dhparam -out /etc/nginx/dhparam.gen 4096 > /dev/null 2>&1 mv /etc/nginx/dhparam.gen /etc/nginx/dhparam.pem systemctl restart nginx EOF - chmod +x /etc/cron.weekly/generate-dhparams + chmod +x /etc/cron.monthly/generate-dhparams }