Skip to content

Commit

Permalink
Merge pull request #11968 from kadern0/issue-11729
Browse files Browse the repository at this point in the history
Added restart command after setting crio options
  • Loading branch information
medyagh authored Jul 28, 2021
2 parents 44feb06 + c211601 commit f20cbf3
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 f20cbf3

Please sign in to comment.