From e37781b5c1fdcd95e5e97e222c55d57dd7ad779d Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Fri, 16 Oct 2026 11:45:43 -0600 Subject: [PATCH] fix: install Jeannie binaries with elevated permissions --- infra/jeannie-temporal/deploy-remote.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/infra/jeannie-temporal/deploy-remote.sh b/infra/jeannie-temporal/deploy-remote.sh index 85d9ef1..806aada 100644 --- a/infra/jeannie-temporal/deploy-remote.sh +++ b/infra/jeannie-temporal/deploy-remote.sh @@ -17,8 +17,12 @@ sudo chown -R "$(id -u):$(id -g)" "${repo_root}" cd "${repo_root}" GOTOOLCHAIN=local go mod tidy GOTOOLCHAIN=local go mod verify -GOTOOLCHAIN=local go build -mod=readonly -o "${install_dir}/jeannie-server" ./cmd/jeannie-server -GOTOOLCHAIN=local go build -mod=readonly -o "${install_dir}/jeannie-temporal-worker" ./cmd/jeannie-temporal-worker +build_dir="$(mktemp -d "${TMPDIR:-/tmp}/jeannie-build.XXXXXX")" +trap 'rm -rf "${build_dir}"' EXIT +GOTOOLCHAIN=local go build -mod=readonly -o "${build_dir}/jeannie-server" ./cmd/jeannie-server +GOTOOLCHAIN=local go build -mod=readonly -o "${build_dir}/jeannie-temporal-worker" ./cmd/jeannie-temporal-worker +sudo install -m 0755 "${build_dir}/jeannie-server" "${install_dir}/jeannie-server" +sudo install -m 0755 "${build_dir}/jeannie-temporal-worker" "${install_dir}/jeannie-temporal-worker" sudo tee /etc/jeannie/temporal.env >/dev/null <