Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Remove debugging log messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmars committed Nov 26, 2017
1 parent faf2d7b commit 7c37a44
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/agentPrivbind.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ privileged ports (<1024).`,
}
if os.Getuid() == 0 {
cmd := exec.Command("setcap", "cap_net_bind_service=+ep", binaryPath)
log.Printf("%#v", cmd)
err := cmd.Run()
if err != nil {
log.Fatalf("setcap failed: %v", err)
}
} else {
cmd := exec.Command("/bin/sh", "-c",
fmt.Sprintf("sudo setcap 'cap_net_bind_service=+ep' %s", binaryPath))
log.Printf("%#v", cmd)
err := cmd.Run()
if err != nil {
log.Fatalf("setcap failed: %v", err)
Expand Down

0 comments on commit 7c37a44

Please sign in to comment.