Merge pull request #17 from safing/fix/data-root-init

Fix setting data root in startup procedure
This commit is contained in:
Daniel 2019-08-19 19:49:46 +02:00 committed by GitHub
commit a2a52eb7cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,8 @@ import (
"errors"
"flag"
"github.com/safing/portbase/config"
"github.com/safing/portbase/api"
"github.com/safing/portbase/database/dbmodule"
"github.com/safing/portbase/modules"
@ -43,8 +45,9 @@ func prepBase() error {
return err
}
// set database location
// set data location
dbmodule.SetDatabaseLocation("", structure.Root())
config.SetDataRoot(structure.Root())
// init config
logFlagOverrides()

View file

@ -33,7 +33,7 @@ func init() {
func main() {
// Set Info
info.Set("Portmaster", "0.3.8", "AGPLv3", true)
info.Set("Portmaster", "0.3.9", "AGPLv3", true)
// Start
err := modules.Start()