automated letsencrypt
[fai-configs.git] / scripts / LETSENCRYPT / 00_fetch.sh
index 0d0c45f..3fc39a6 100755 (executable)
@@ -5,4 +5,10 @@ if [ ! -d $LETSENCRYPT_PATH/letsencrypt ]; then
     git clone https://github.com/letsencrypt/letsencrypt
 fi
 fcopy -Bv /etc/init.d/request-letsencrypt
+
+$ROOTCMD sed 's^LETSENCRYPT_EMAIL_TOKEN^'$LETSENCRYPT_EMAIL'^g' -i /etc/init.d/request-letsencrypt
+$ROOTCMD sed 's^SERVERNAME_TOKEN^'$SERVERNAME'^g' -i /etc/init.d/request-letsencrypt
+$ROOTCMD sed 's^HOSTNAME_TOKEN^'$HOSTNAME'^g' -i /etc/init.d/request-letsencrypt
+
+
 $ROOTCMD update-rc.d request-letsencrypt defaults