Skip to content

Commit 664b526

Browse files
Merge pull request #282 from step-security/fix-restart-bug
Fix restart bug
2 parents fa321b6 + 191759c commit 664b526

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dnsconfig.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ func (d *DnsConfig) RevertDockerDNSServer(cmd Command, configPath string) error
200200
}
201201

202202
if cmd == nil {
203-
cmd = exec.Command("/bin/sh", "-c", "sudo systemctl daemon-reload && sudo systemctl reload docker")
203+
cmd = exec.Command("/bin/sh", "-c", "sudo systemctl daemon-reload && sudo systemctl restart docker")
204204
}
205205

206206
err = cmd.Run()
207207
if err != nil {
208-
return fmt.Errorf(fmt.Sprintf("error reloading docker: %v", err))
208+
return fmt.Errorf(fmt.Sprintf("error restarting docker: %v", err))
209209
}
210210
}
211211
return nil

release-monitor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ release-process:
77
- artifact: agent_{{.Version}}_linux_amd64.tar.gz
88
binary: agent
99
build-command: go build -trimpath -ldflags="-s -w -X main.version={{.Version}} -X main.commit={{.FullCommit}} -X main.date=123"
10-
go-version: 1.17.11
10+
go-version: 1.17.12
1111
pipeline:
1212
github-action:
1313
repo: step-security/agent

0 commit comments

Comments
 (0)