mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-10-22 07:09:11 +02:00
fix: serialize installation updates and recover interrupted adoption and rollback
This commit is contained in:
1 parent
54d8f1187d
commit
e8a5392b37
30 files changed
+1250
-124
No files matched your search
@@ -45,6 +45,9 @@ func updateCommandIfNeeded(configPath string, check, apply, rollback bool) (bool
|
||||
return true, 1
|
||||
}
|
||||
printSnapshot(snap)
|
||||
if !snap.Installed || snap.CheckError != "" {
|
||||
return true, 1
|
||||
}
|
||||
return true, 0
|
||||
case apply:
|
||||
res, err := update.Apply(ctx, opts, func(s update.Step) {
|
||||
|
||||
Reference in new issue
Block a user