aboutsummaryrefslogtreecommitdiff
path: root/nitro@/unitroctl
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2026-01-19 20:18:38 +0100
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2026-01-19 20:18:38 +0100
commit647fa59ecbc8b51309ef20288de5eb73a042f869 (patch)
tree71bcdb01237d7b67df91588bf84572050b161155 /nitro@/unitroctl
initial importnitro
Diffstat (limited to 'nitro@/unitroctl')
-rwxr-xr-xnitro@/unitroctl9
1 files changed, 9 insertions, 0 deletions
diff --git a/nitro@/unitroctl b/nitro@/unitroctl
new file mode 100755
index 0000000..d84817a
--- /dev/null
+++ b/nitro@/unitroctl
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+: ${NITRO_SOCK:=/run/user/$(id -u)/nitro/nitro.sock}
+if [ ! -S "$NITRO_SOCK" ]; then
+ echo "unitroctl: couldn't find socket $NITRO_SOCK" >&2
+ exit 1
+fi
+export NITRO_SOCK
+exec nitroctl "$@"