From 05afa6f5a0ae1f8543bbf842c66cb5be5f78fe93 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Tue, 18 Jun 2019 11:56:49 +0200 Subject: [PATCH] fix: call the hook at the first call. (#26) --- dumper/file/file.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dumper/file/file.go b/dumper/file/file.go index 33bbacc..1bd64ef 100644 --- a/dumper/file/file.go +++ b/dumper/file/file.go @@ -22,6 +22,8 @@ func Dump(acmeFile string, baseConfig *dumper.BaseConfig) error { } if baseConfig.Watch { + hook.Exec(baseConfig.Hook) + return watch(acmeFile, baseConfig) } return nil