mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 21:53:48 +03:00
Update comment in setcap helper script
This commit is contained in:
parent
57c5b921a4
commit
1919c08ecc
1 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
# USAGE: go run -exec ./setcap.sh <args...>
|
||||
# USAGE: go run -exec ./setcap.sh main.go <args...>
|
||||
#
|
||||
# (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 <args...>
|
||||
# but this will leave the ./caddy binary laying around.
|
||||
#
|
||||
#
|
||||
|
||||
sudo setcap cap_net_bind_service=+ep "$1"
|
||||
"$@"
|
||||
|
|
Loading…
Reference in a new issue