Commit 4d465d32 authored by Marco Marinello's avatar Marco Marinello

Try to fix a bug with certbot

parent ddeb3ddb
......@@ -25,19 +25,18 @@ test -e /usr/local/share/ca-certificates/fuss.bz.it/fuss.crt || (
)
# Configure certbot
if [ ! -e /etc/letsencrypt/live ]; then
if [ ! -e /etc/letsencrypt/accounts/10.0.101.50\:4001/ ]; then
certbot register \
--non-interactive \
--agree-tos \
--register-unsafely-without-email \
--server https://${ACME_SERVER}:4001/acme/acme/directory
else
certbot \
--apache \
--non-interactive \
--server https://${ACME_SERVER}:4001/acme/acme/directory \
-d ${NEXTCLOUD_INTERNAL_DOMAIN}
fi
certbot \
--apache \
--non-interactive \
--server https://${ACME_SERVER}:4001/acme/acme/directory \
-d ${NEXTCLOUD_INTERNAL_DOMAIN}
# Enable apps
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment