mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-10-15 07:28:41 +02:00
Stopping edgeapp before removing
This commit is contained in:
@@ -283,6 +283,8 @@ func taskRemoveEdgeApp(args taskRemoveEdgeAppArgs) string {
|
|||||||
|
|
||||||
fmt.Println("Executing taskRemoveEdgeApp for " + args.ID)
|
fmt.Println("Executing taskRemoveEdgeApp for " + args.ID)
|
||||||
|
|
||||||
|
// Making sure the application is stopped before setting it as removed.
|
||||||
|
edgeapps.StopEdgeApp(args.ID)
|
||||||
result := edgeapps.SetEdgeAppNotInstalled(args.ID)
|
result := edgeapps.SetEdgeAppNotInstalled(args.ID)
|
||||||
|
|
||||||
resultJSON, _ := json.Marshal(result)
|
resultJSON, _ := json.Marshal(result)
|
||||||
|
|||||||
Reference in New Issue
Block a user