mirror of
https://github.com/safing/portmaster
synced 2025-04-25 13:29:10 +00:00
Fix setting data root in startup procedure
This commit is contained in:
parent
19420b8454
commit
d5022a1ffc
2 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||
|
|
2
main.go
2
main.go
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue