Restart container when tech changes
All checks were successful
Unittests / unittests (push) Successful in 10s
Unittests / deploy-dev (push) Successful in 47s

This commit is contained in:
Adam Štrauch 2024-02-01 22:02:22 +01:00
parent 1c5b8d8f50
commit 863d857283
Signed by: cx
GPG Key ID: 7262DAFE292BCE20

View File

@ -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