mirror of
https://github.com/netbirdio/netbird.git
synced 2025-04-27 21:09:09 +02:00
Merge pull request #1177 from netbirdio/fix/avoid-config-write-if-datastore-key-exists
Avoid writing config if datastore key exists
This commit is contained in:
commit
5f499d66b2
@ -148,7 +148,7 @@ var (
|
|||||||
return fmt.Errorf("failed to initialize database: %s", err)
|
return fmt.Errorf("failed to initialize database: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if key != "" {
|
if config.DataStoreEncryptionKey != key {
|
||||||
log.Infof("update config with activity store key")
|
log.Infof("update config with activity store key")
|
||||||
config.DataStoreEncryptionKey = key
|
config.DataStoreEncryptionKey = key
|
||||||
err := updateMgmtConfig(mgmtConfig, config)
|
err := updateMgmtConfig(mgmtConfig, config)
|
||||||
|
Loading…
Reference in New Issue
Block a user