myvemail/build/run/docker-entrypoint/init.d/10-ssl.sh

9 lines
251 B
Bash
Raw Permalink Normal View History

2024-08-09 12:50:33 +00:00
#!/usr/bin/env bash
# Check if keys exist
if [ ! -f /etc/ssl/dovecot/tls.pem ] || [ ! -f /etc/ssl/dovecot/tls.key ] || [ ! -f /etc/ssl/dovecot/dh.pem ]
2024-08-09 12:50:33 +00:00
then
exit 1
fi
# Permissions
setfacl -R -m u:${MYVEMAIL_NGINX_USERGROUP}:rx /etc/ssl/dovecot/