From 1919c08ecc70ae00aad28c2d083b477fbf2150b8 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 31 Jan 2024 12:59:26 -0700 Subject: [PATCH] Update comment in setcap helper script --- cmd/caddy/setcap.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd/caddy/setcap.sh b/cmd/caddy/setcap.sh index d777e5a62..ac5335c56 100755 --- a/cmd/caddy/setcap.sh +++ b/cmd/caddy/setcap.sh @@ -1,6 +1,14 @@ #!/bin/sh -# USAGE: go run -exec ./setcap.sh +# USAGE: go run -exec ./setcap.sh main.go +# +# (Example: `go run -exec ./setcap.sh main.go run --config caddy.json`) +# +# For some reason this does not work on my Arch system, so if you find that's +# the case, you can instead do: go build && ./setcap.sh ./caddy +# but this will leave the ./caddy binary laying around. +# +# sudo setcap cap_net_bind_service=+ep "$1" "$@"