Implement old storage.Path API

This commit is contained in:
Ken-Håvard Lieng 2020-04-20 03:02:15 +02:00
parent 164e071e7f
commit 360bed00f9
11 changed files with 44 additions and 39 deletions

View file

@ -22,7 +22,7 @@ func TestMain(m *testing.M) {
log.Fatal(err)
}
storage.Initialize(tempdir)
storage.Initialize(tempdir, "", "")
db, err := boltdb.New(storage.Path.Database())
if err != nil {

View file

@ -147,7 +147,7 @@ func (d *Dispatch) startHTTP() {
PortHTTPS: cfg.HTTPS.Port,
HTTPOnly: !cfg.HTTPS.Enabled,
StoragePath: storage.ConfigPath.LetsEncrypt(),
StoragePath: storage.Path.LetsEncrypt(),
Domain: cfg.LetsEncrypt.Domain,
Email: cfg.LetsEncrypt.Email,