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