author | Alberto Bertogli
<albertito@blitiri.com.ar> 2022-08-23 22:48:35 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2022-08-23 22:48:35 UTC |
parent | b779941f90e55b35a9ee84c2a7a307494c6c1011 |
docker/entrypoint.sh | +4 | -4 |
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 3bb9e9f..e5a5451 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -46,6 +46,10 @@ if [ "$AUTO_CERTS" != "" ]; then # Note this requires you to restart every week or so, to make sure # your certificate does not expire. certbot renew + + # Give chasquid access to the certificates. + # Dovecot does not need this as it reads them as root. + setfacl -R -m u:chasquid:rX /etc/letsencrypt/{live,archive} fi CERT_DOMAINS="" @@ -66,10 +70,6 @@ if [ "$CERT_DOMAINS" == "" ]; then exit 1 fi -# Give chasquid access to the certificates. -# Dovecot does not need this as it reads them as root. -setfacl -R -m u:chasquid:rX /etc/letsencrypt/{live,archive} - # Give chasquid access to the data directory. mkdir -p /data/chasquid/data chown -R chasquid /data/chasquid/