myvemail/build/run/docker-entrypoint/init.d/10-ssl.sh
2024-08-19 23:16:47 +00:00

9 lines
251 B
Bash
Executable file

#!/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 ]
then
exit 1
fi
# Permissions
setfacl -R -m u:${MYVEMAIL_NGINX_USERGROUP}:rx /etc/ssl/dovecot/