Restart container when tech changes
This commit is contained in:
parent
1c5b8d8f50
commit
863d857283
@ -433,6 +433,12 @@ func (p *Processor) Update(appTemplate apps.App) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to enable tech: %v", err)
|
return fmt.Errorf("failed to enable tech: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We restart the container so everything can use the new tech
|
||||||
|
err = container.Restart()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user