[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] letsencrypt: fix&tweaks

Mattia Rizzolo gitlab at salsa.debian.org
Sun Aug 16 16:08:51 BST 2020



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
7f64171d by Mattia Rizzolo at 2020-08-16T17:03:00+02:00
letsencrypt: fix&tweaks

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


2 changed files:

- hosts/jenkins/etc/dehydrated/conf.d/local_local.sh
- hosts/jenkins/etc/dehydrated/hooks.sh


Changes:

=====================================
hosts/jenkins/etc/dehydrated/conf.d/local_local.sh
=====================================
@@ -1,11 +1,11 @@
 #CA="https://acme-v02.api.letsencrypt.org/directory"
-CA="https://acme-staging.api.letsencrypt.org/directory"
+CA="https://acme-staging-v02.api.letsencrypt.org/directory"
 
 RENEW_DAYS="30"
 KEYSIZE="4096"
 PRIVATE_KEY_RENEW="no"
 
 CHALLENGETYPE="http-01"
-HOOK="/etc/dehydrated/hook.sh"
+HOOK="/etc/dehydrated/hooks.sh"
 
 CONTACT_EMAIL="contact at reproducible-builds.org"


=====================================
hosts/jenkins/etc/dehydrated/hooks.sh
=====================================
@@ -15,7 +15,9 @@ reload_apache () {
 
 email () {
     # $1: domain name $6: timestamp of cert creation
-    echo -e "The following SSL certifcate has just been renewed:\n\n    $1\t$6" | \
+    printf "%s\n\n    %s\t%s" \
+            "The following SSL certifcate has just been renewed:" \
+            "$1" "$(date -u -d @"$6")" | \
         mail -s "R-B SSL certifcate renewed" root
 }
 



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/7f64171df4081478a5b08479f373337a0bd85d97

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/7f64171df4081478a5b08479f373337a0bd85d97
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200816/e6f4972d/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list