|
|
@ -10,7 +10,7 @@ echo $HOSTNAME > /haraka/config/me |
|
|
|
|
|
|
|
|
|
|
|
# Get and install certificates from Let's Encrypt |
|
|
|
# Get and install certificates from Let's Encrypt |
|
|
|
if [ ! -f /haraka/config/tls ]; then |
|
|
|
if [ ! -f /haraka/config/tls ]; then |
|
|
|
certbot certonly -n --agree-tos -d "$HOSTNAME" --standalone --preferred-challenges http |
|
|
|
certbot certonly -n --agree-tos --email "$EMAIL" -d "$HOSTNAME" --standalone --preferred-challenges http |
|
|
|
mkdir -p /haraka/config/tls |
|
|
|
mkdir -p /haraka/config/tls |
|
|
|
cd /haraka/config/tls |
|
|
|
cd /haraka/config/tls |
|
|
|
ln -s /etc/letsencrypt/live/$HOSTNAME/privkey.pem tls-key.pem |
|
|
|
ln -s /etc/letsencrypt/live/$HOSTNAME/privkey.pem tls-key.pem |
|
|
|