automated letsencrypt
authorLisa Marie Maginnis <lisam@fsf.org>
Mon, 29 Feb 2016 04:25:52 +0000 (23:25 -0500)
committerLisa Marie Maginnis <lisam@fsf.org>
Mon, 29 Feb 2016 04:25:52 +0000 (23:25 -0500)
files/etc/init.d/request-letsencrypt/DEFAULT
scripts/LETSENCRYPT/00_fetch.sh

index b0081a0..f7d2d90 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-if [ ! -d /etc/letsencrypt/archive/$HOSTNAME ]; then
+if [ ! -d /etc/letsencrypt/archive/HOSTNAME_TOKEN ]; then
     cd /srv/letsencrypt
-    /letsencrypt-auto certonly --standalone --agree-tos --email $LETSENCRYPT_EMAIL -d $HOSTNAME -d $SERVERNAME
+    /letsencrypt-auto certonly --standalone --agree-tos --email LETSENCRYPT_EMAIL_TOKEN -d HOSTNAME_TOKEN -d SERVERNAME_TOKEN
 fi
 
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