diff --git a/web/rootfs/etc/cont-init.d/10-config b/web/rootfs/etc/cont-init.d/10-config index 8aede39..13fe8f4 100644 --- a/web/rootfs/etc/cont-init.d/10-config +++ b/web/rootfs/etc/cont-init.d/10-config @@ -10,12 +10,10 @@ mkdir -p \ # generate keys (maybe) if [[ $DISABLE_HTTPS -ne 1 ]]; then if [[ $ENABLE_LETSENCRYPT -eq 1 ]]; then - if [[ ! -f /config/acme.sh/acme.sh ]]; then - mkdir /config/acme.sh - pushd /opt - sh ./acme.sh --install --home /config/acme.sh --accountemail $LETSENCRYPT_EMAIL - popd - fi + mkdir -p /config/acme.sh + pushd /opt + sh ./acme.sh --install --home /config/acme.sh --accountemail $LETSENCRYPT_EMAIL + popd if [[ ! -f /config/acme-certs/$LETSENCRYPT_DOMAIN/fullchain.pem ]]; then STAGING="" if [[ $LETSENCRYPT_USE_STAGING -eq 1 ]]; then