summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rwxr-xr-xcmd/caddy/setcap.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/caddy/setcap.sh b/cmd/caddy/setcap.sh
new file mode 100755
index 0000000..d777e5a
--- /dev/null
+++ b/cmd/caddy/setcap.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# USAGE: go run -exec ./setcap.sh <args...>
+
+sudo setcap cap_net_bind_service=+ep "$1"
+"$@"