1
0
Fork 0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-11-08 16:20:05 +00:00

Allow overwriting the vault token by setting only the default

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-06-14 16:01:22 +02:00
parent e48ab2dc51
commit a0b26ea1ae
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -84,7 +84,7 @@ func init() {
viper.BindEnv("vault-token", "VAULT_TOKEN")
if tok := vaultTokenFromDisk(); tok != "" {
viper.Set("vault-token", tok)
viper.SetDefault("vault-token", tok)
}
}