This commit is contained in:
Mehdi (OSX) 2023-11-22 23:27:42 +05:00
parent 59b920e8b9
commit 46c2ba5701

View File

@ -49,6 +49,8 @@ renew_command=${renew_command//#dry_run_arg#/$dry_run_arg}
echo "" echo ""
certbotNotice="It's not a dry-run, therefore don't keep generating/renewing certificates (more than 5 in a day), as certbot has rate limitations.";
#Check if certificate exist #Check if certificate exist
live_cert_file="${live_certs_dir}/cert.pem" live_cert_file="${live_certs_dir}/cert.pem"
if [ -d "$live_certs_dir" ] && [ -f "$live_cert_file" ] if [ -d "$live_certs_dir" ] && [ -f "$live_cert_file" ]
@ -63,7 +65,7 @@ then
if [ "$dry_run" = true ] ; then if [ "$dry_run" = true ] ; then
echo -e "\n${separator}\n[DRY-RUN ENABLED]\n${separator}\n" echo -e "\n${separator}\n[DRY-RUN ENABLED]\n${separator}\n"
else else
echo -e "\n${separator}\n" echo -e "\n${separator}\n[${certbotNotice}]\n${separator}\n"
fi fi
echo -e "Output from renew command:\n" echo -e "Output from renew command:\n"
@ -98,7 +100,7 @@ else
if [ "$dry_run" = true ] ; then if [ "$dry_run" = true ] ; then
echo -e "\n${separator}\n[DRY-RUN ENABLED]\n${separator}\n" echo -e "\n${separator}\n[DRY-RUN ENABLED]\n${separator}\n"
else else
echo -e "\n${separator}\n" echo -e "\n${separator}\n[${certbotNotice}]\n${separator}\n"
fi fi
echo -e "Output from new ssl command:\n" echo -e "Output from new ssl command:\n"