Fixed CLI after WebRoot provider was moved

This commit is contained in:
Adrien Carbonne 2016-03-14 11:52:45 +01:00
parent 7ebad0e886
commit 4116254e6c

View file

@ -16,6 +16,7 @@ import (
"github.com/xenolf/lego/providers/dns/dnsimple"
"github.com/xenolf/lego/providers/dns/rfc2136"
"github.com/xenolf/lego/providers/dns/route53"
"github.com/xenolf/lego/providers/http/webroot"
)
func checkFolder(path string) error {
@ -54,7 +55,7 @@ func setup(c *cli.Context) (*Configuration, *Account, *acme.Client) {
}
if c.GlobalIsSet("webroot") {
provider, err := acme.NewHTTPProviderWebroot(c.GlobalString("webroot"))
provider, err := webroot.NewHTTPProviderWebroot(c.GlobalString("webroot"))
if err != nil {
logger().Fatal(err)
}