dot

packages and services management
Log | Files | Refs | README

commit d4247cbd858ed722bc3a81ebf4af616691f6571c
parent ca4bed882bd460819ef6868d26ac1b583881fd10
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun,  7 Oct 2018 12:47:00 +0200

snooze-acme-client: adjust variables

Diffstat:
As6/snooze-acme-client-run/env/ACCOUNTKEY | 1+
As6/snooze-acme-client-run/env/CERTDIR | 1+
As6/snooze-acme-client-run/env/CHALLENGEDIR | 1+
As6/snooze-acme-client-run/env/DOMAINKEY | 1+
Ms6/snooze-acme-client-run/run | 13++++++++++---
5 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/s6/snooze-acme-client-run/env/ACCOUNTKEY b/s6/snooze-acme-client-run/env/ACCOUNTKEY @@ -0,0 +1 @@ +/etc/acme/privkey.pem diff --git a/s6/snooze-acme-client-run/env/CERTDIR b/s6/snooze-acme-client-run/env/CERTDIR @@ -0,0 +1 @@ +/etc/ssl/acme diff --git a/s6/snooze-acme-client-run/env/CHALLENGEDIR b/s6/snooze-acme-client-run/env/CHALLENGEDIR @@ -0,0 +1 @@ +/var/www/acme diff --git a/s6/snooze-acme-client-run/env/DOMAINKEY b/s6/snooze-acme-client-run/env/DOMAINKEY @@ -0,0 +1 @@ +/etc/ssl/acme/private/privkey.pem diff --git a/s6/snooze-acme-client-run/run b/s6/snooze-acme-client-run/run @@ -1,11 +1,18 @@ #!/usr/bin/env execlineb fdmove -c 2 1 s6-envdir env multisubstitute { - importas DOMAIN DOMAIN importas CHALLENGEDIR CHALLENGEDIR importas CERTDIR CERTDIR + importas DOMAINKEY DOMAINKEY + importas ACCOUNTKEY ACCOUNTKEY + importas DOMAIN DOMAIN } -if { mkdir -p /var/tls/ } +if { mkdir -p $CHALLENGEDIR $CERTDIR } snooze -d1 -acme-client -vnN -C $CHALLENGEDIR -c $CERTDIR -f data/conf $DOMAIN +acme-client -vnN + -C $CHALLENGEDIR + -c $CERTDIR + -k $DOMAINKEY + -f $ACCOUNTKEY + $DOMAIN