1 parent
d2f14ede7a
commit
cfe4401b70
32 files changed
+893
-318
No files matched your search
@@ -17,6 +17,7 @@ func Finish() error {
|
||||
if err != nil {
|
||||
return errors.Wrap(err)
|
||||
}
|
||||
initializing := !cfg.IsInit && cfg.SetupState != config.SetupStateReady
|
||||
portsChanged := applyServicePorts(cfg)
|
||||
if cfg.IsSetupReady() {
|
||||
if portsChanged {
|
||||
@@ -29,6 +30,11 @@ func Finish() error {
|
||||
}
|
||||
cfg.SetupState = config.SetupStateReady
|
||||
cfg.IsInit = true
|
||||
if initializing {
|
||||
cfg.VerificationEnabled = true
|
||||
cfg.ExternalRecoveryEnabled = true
|
||||
cfg.LoginPolicy = "new_device"
|
||||
}
|
||||
|
||||
err = config.WriteConfig(cfg)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user