automated letsencrypt
[fai-configs.git] / scripts / LETSENCRYPT / 00_fetch.sh
... / ...
CommitLineData
1#!/bin/bash
2
3if [ ! -d $LETSENCRYPT_PATH/letsencrypt ]; then
4 cd $target/$LETSENCRYPT_PATH
5 git clone https://github.com/letsencrypt/letsencrypt
6fi
7fcopy -Bv /etc/init.d/request-letsencrypt
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
14$ROOTCMD update-rc.d request-letsencrypt defaults