Skip to content

Commit

Permalink
Merge pull request #1177 from netbirdio/fix/avoid-config-write-if-dat…
Browse files Browse the repository at this point in the history
…astore-key-exists

Avoid writing config if datastore key exists
  • Loading branch information
pascal-fischer authored Sep 27, 2023
2 parents 7c065bd + ab849f0 commit 5f499d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/cmd/management.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ var (
return fmt.Errorf("failed to initialize database: %s", err)
}

if key != "" {
if config.DataStoreEncryptionKey != key {
log.Infof("update config with activity store key")
config.DataStoreEncryptionKey = key
err := updateMgmtConfig(mgmtConfig, config)
Expand Down

0 comments on commit 5f499d6

Please sign in to comment.