From 528cc14ae5f965ced753875eefd36c7a56f6da9b Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Tue, 20 Sep 2022 15:03:47 -0400 Subject: [PATCH] use absolute path to node executable --- quickstart/docker/image/ziti-cli-functions.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/quickstart/docker/image/ziti-cli-functions.sh b/quickstart/docker/image/ziti-cli-functions.sh index c0b1935c1..d5fafdc48 100755 --- a/quickstart/docker/image/ziti-cli-functions.sh +++ b/quickstart/docker/image/ziti-cli-functions.sh @@ -1380,6 +1380,14 @@ function createZacSystemdFile { return 1 fi + if which node >/dev/null; then + # store the absolute path to the node executable because it's required by systemd on Amazon Linux, at least + NODE_BIN=$(readlink -f $(which node)) + else + echo "ERROR: missing executable 'node'" >&2 + return 1 + fi + cat > "${output_file}" <