Skip to content

Commit 3d82da3

Browse files
fix[installer](setup): added lock on installer final phase (#2180)
1 parent 9f3cb3a commit 3d82da3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

installer/setup/apply.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,17 +290,17 @@ func Apply(version string, updating bool) (string, error) {
290290
fmt.Println(" [OK]")
291291
}
292292

293-
// if utils.GetLock(10, stack.LocksDir) {
293+
if utils.GetLock(10, stack.LocksDir) {
294294
// fmt.Print("Sending sample logs")
295295
// if err := SendSampleData(); err != nil {
296296
// fmt.Printf("error sending sample data: %v", err)
297297
// }
298298

299-
// if err := utils.SetLock(10, stack.LocksDir); err != nil {
300-
// return err
301-
// }
302-
// fmt.Println(" [OK]")
303-
// }
299+
if err := utils.SetLock(10, stack.LocksDir); err != nil {
300+
return "",err
301+
}
302+
fmt.Println(" [OK]")
303+
}
304304

305305
return cnf.Password, nil
306306
}

0 commit comments

Comments
 (0)