1
0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-09-18 17:12:57 +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)
}
}