@marcel91200 / caddy Mirror · read-only / commits / 1919c08e
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 12, 17:00 UTC

Update comment in setcap helper script

Matthew Holt committed Jan 31, 2024 at 12:59 UTC 1919c08ecc70ae00aad28c2d083b477fbf2150b8
1 file changed +9 -1
cmd/caddy/setcap.sh
+9 -1
@@ -1,6 +1,14 @@
1 #!/bin/sh
2
3 -# USAGE: go run -exec ./setcap.sh <args...>
3 +# USAGE: go run -exec ./setcap.sh main.go <args...>
4 +#
5 +# (Example: `go run -exec ./setcap.sh main.go run --config caddy.json`)
6 +#
7 +# For some reason this does not work on my Arch system, so if you find that's
8 +# the case, you can instead do: go build && ./setcap.sh ./caddy <args...>
9 +# but this will leave the ./caddy binary laying around.
10 +#
11 +#
12
13 sudo setcap cap_net_bind_service=+ep "$1"
14 "$@"