aboutsummaryrefslogtreecommitdiff
path: root/nitro@/unitroctl
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 "$@"