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" "$@"