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