diff --git a/README.md b/README.md index 8f36a4a..63f60b9 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This small utility is a helper to automatically unlock a [Vault](https://www.vau # ./vault-unseal --help Usage of ./vault-unseal: --instance="http://127.0.0.1:8200": Vault instance to unlock - -1, --oneshot[=true]: Only try once and exit after + -1, --oneshot[=false]: Only try once and exit after --sleep=30: How long to wait between sealed-state checks --tokens="": Tokens to try for unsealing the vault instance ``` diff --git a/main.go b/main.go index 09e80ce..93ef85b 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,7 @@ import ( ) var config = struct { - OneShot bool `flag:"oneshot,1" default:"true" description:"Only try once and exit after"` + OneShot bool `flag:"oneshot,1" default:"false" description:"Only try once and exit after"` SealTokensRaw string `flag:"tokens" default:"" description:"Tokens to try for unsealing the vault instance"` SealTokens []string VaultInstance string `flag:"instance" env:"VAULT_ADDR" default:"http://127.0.0.1:8200" description:"Vault instance to unlock"`