automated letsencrypt
[fai-configs.git] / files / etc / init.d / request-letsencrypt / DEFAULT
1 #!/bin/bash
2
3 if [ ! -d /etc/letsencrypt/archive/$HOSTNAME ]; then
4     cd /srv/letsencrypt
5     /letsencrypt-auto certonly --standalone --agree-tos --email $LETSENCRYPT_EMAIL -d $HOSTNAME -d $SERVERNAME
6 fi
7