From 5315912a850da4ba86525b593288867711227d89 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 8 Dec 2015 01:15:46 +0100 Subject: Expand hooks --- acme.toml | 13 ++++++++++++- cmd/acme/config.go | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/acme.toml b/acme.toml index da36130..3b9e29a 100644 --- a/acme.toml +++ b/acme.toml @@ -16,10 +16,21 @@ cert = "/etc/ssl/certs/www_example_com.pem" webroot = "/var/www/htdocs" account = "example" gracetime = "1 week" -hook = "nginx" +hook = [ "nginx" ] + +[[desire]] +altnames = [ "mail.example.com" ] +key = "/etc/ssl/private/mail_example_com.key" +cert = "/etc/ssl/certs/mail_example_com.pem" +account = "example" +gracetime = "1 week" +hook = [ "dovecot", "smtpd" ] [hook.nginx] cmd = "sudo service nginx reload" [hook.dovecot] cmd = "sudo service dovecot reload" + +[hook.smtpd] +cmd = "sudo service smtpd reload" diff --git a/cmd/acme/config.go b/cmd/acme/config.go index 5e1d952..c27b367 100644 --- a/cmd/acme/config.go +++ b/cmd/acme/config.go @@ -30,7 +30,7 @@ type Desire struct { Webroot string Account string Gracetime string - Hook string + Hook []string } type Hook struct { -- cgit v1.2.3