automated letsencrypt
[fai-configs.git] / scripts / LETSENCRYPT / 00_fetch.sh
CommitLineData
5ff21634
LMM
1#!/bin/bash
2
3if [ ! -d $LETSENCRYPT_PATH/letsencrypt ]; then
4 cd $target/$LETSENCRYPT_PATH
5 git clone https://github.com/letsencrypt/letsencrypt
6fi
ef9a3577 7fcopy -Bv /etc/init.d/request-letsencrypt
1367fe94
LMM
8
9$ROOTCMD sed 's^LETSENCRYPT_EMAIL_TOKEN^'$LETSENCRYPT_EMAIL'^g' -i /etc/init.d/request-letsencrypt
10$ROOTCMD sed 's^SERVERNAME_TOKEN^'$SERVERNAME'^g' -i /etc/init.d/request-letsencrypt
11$ROOTCMD sed 's^HOSTNAME_TOKEN^'$HOSTNAME'^g' -i /etc/init.d/request-letsencrypt
12
13
ef9a3577 14$ROOTCMD update-rc.d request-letsencrypt defaults