2023-09-12 03:26:05 +02:00
|
|
|
//go:build linux
|
|
|
|
|
|
|
|
package setup
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/quexten/goldwarden/agent/config"
|
|
|
|
"github.com/quexten/goldwarden/cmd"
|
|
|
|
)
|
|
|
|
|
|
|
|
func VerifySetup(runtimeConfig config.RuntimeConfig) bool {
|
2024-02-09 19:37:09 +01:00
|
|
|
if !cmd.IsPolkitSetup() {
|
2023-09-12 03:26:05 +02:00
|
|
|
fmt.Println("Polkit is not setup. Run 'goldwarden setup polkit' to set it up.")
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
return true
|
|
|
|
}
|