From 24d5c2cfbec143a47f1128472389e09e54435f27 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 14 Jul 2025 14:40:51 -0600 Subject: chore: add shell script to shim request to spicedb --- bin/spicedb | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 bin/spicedb (limited to 'bin') diff --git a/bin/spicedb b/bin/spicedb new file mode 100755 index 00000000..acd1ee09 --- /dev/null +++ b/bin/spicedb @@ -0,0 +1,3 @@ +#!/bin/sh + +exec spiced $@ -- cgit v1.2.3 From 34fa928a67dd25e55e8ee292e0b10635b49b73bd Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 14 Jul 2025 14:44:34 -0600 Subject: chore: provide error message when spicedb is not installed --- bin/spicedb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/spicedb b/bin/spicedb index acd1ee09..6c43a153 100755 --- a/bin/spicedb +++ b/bin/spicedb @@ -1,3 +1,8 @@ #!/bin/sh -exec spiced $@ +if ! command -v spicedb >/dev/null 2>&1; then + echo "Install spicedb: https://authzed.com/docs/spicedb/getting-started/installing-spicedb" + exit 1 +fi + +exec spicedb "$@" -- cgit v1.2.3 From df516355bb8f2b772b1be950f728f99faea61db1 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 14 Jul 2025 14:49:42 -0600 Subject: chore: check if envoy is installed and pass raw args to program --- bin/envoy | 5 +++++ bin/spicedb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/envoy b/bin/envoy index ede6290c..5f2ea9ca 100755 --- a/bin/envoy +++ b/bin/envoy @@ -1,3 +1,8 @@ #!/bin/sh +if ! command -v envoy >/dev/null 2>&1; then + echo "Install envoy: https://www.envoyproxy.io/docs/envoy/latest/start/install" + exit 1 +fi + exec envoy $@ diff --git a/bin/spicedb b/bin/spicedb index 6c43a153..5d4cf0bb 100755 --- a/bin/spicedb +++ b/bin/spicedb @@ -5,4 +5,4 @@ if ! command -v spicedb >/dev/null 2>&1; then exit 1 fi -exec spicedb "$@" +exec spicedb $@ -- cgit v1.2.3