feat(go): further adapt to the new socket location

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
main
Raito Bezarius 1 month ago
parent 41e83f4b39
commit a88d971d02

@ -12,7 +12,7 @@ import (
)
const (
systemdVaultdir = "/run/systemd-vaultd/secrets"
systemdVaultdir = "/run/systemd-openbaod/secrets"
)
func updateSecrets(serviceName, target string) error {

@ -190,13 +190,13 @@ var secretDir, socketDir string
func init() {
defaultDir := os.Getenv("SYSTEMD_VAULT_SECRETS")
if defaultDir == "" {
defaultDir = "/run/systemd-vaultd/secrets"
defaultDir = "/run/systemd-openbaod/secrets"
}
flag.StringVar(&secretDir, "secrets", defaultDir, "directory where secrets are looked up")
defaultSock := os.Getenv("SYSTEMD_VAULT_SOCK")
if defaultSock == "" {
defaultSock = "/run/systemd-vaultd/sock"
defaultSock = "/run/systemd-openbaod/sock"
}
flag.StringVar(&socketDir, "sock", defaultSock, "unix socket to listen to for systemd requests")
flag.Parse()

Loading…
Cancel
Save