diff --git a/fritzbox_upload_certificate.sh b/fritzbox_upload_certificate.sh index df14000..7de3934 100755 --- a/fritzbox_upload_certificate.sh +++ b/fritzbox_upload_certificate.sh @@ -111,6 +111,9 @@ done [ ${exit} -ne 0 ] && exit ${exit} +# strip trailing slash +baseurl="${baseurl%/}" + fullchain="${certpath}/fullchain.pem" privkey="${certpath}/privkey.pem"