safing-portmaster/process/module.go
2021-02-11 22:32:24 +01:00

30 lines
464 B
Go

package process
import (
"os"
"github.com/safing/portbase/modules"
"github.com/safing/portmaster/updates"
)
var (
module *modules.Module
updatesPath string
)
func init() {
module = modules.Register("processes", prep, start, nil, "profiles", "updates")
}
func prep() error {
return registerConfiguration()
}
func start() error {
updatesPath = updates.RootPath()
if updatesPath != "" {
updatesPath += string(os.PathSeparator)
}
return nil
}