Skip to content

Commit

Permalink
Added restart command after setting crio options
Browse files Browse the repository at this point in the history
  • Loading branch information
kadern0 committed Jul 13, 2021
1 parent aa92f41 commit c211601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provision/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ CRIO_MINIKUBE_OPTIONS='{{ range .EngineOptions.InsecureRegistry }}--insecure-reg
return err
}

if _, err = p.SSHCommand(fmt.Sprintf("sudo mkdir -p %s && printf %%s \"%s\" | sudo tee %s", path.Dir(crioOptsPath), crioOptsBuf.String(), crioOptsPath)); err != nil {
if _, err = p.SSHCommand(fmt.Sprintf("sudo mkdir -p %s && printf %%s \"%s\" | sudo tee %s && sudo systemctl restart crio", path.Dir(crioOptsPath), crioOptsBuf.String(), crioOptsPath)); err != nil {
return err
}

Expand Down

0 comments on commit c211601

Please sign in to comment.