From 0037ac5c289170a0720b51b6373db0ee356d5fe6 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 4 Mar 2026 17:24:43 +0100 Subject: [PATCH] Update install-systemd.sh to enhance the build process. Changed the build command to use a subshell for better directory context and updated the progress indicator from [1/6] to [1/7]. --- install-systemd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-systemd.sh b/install-systemd.sh index 8b1f06a..0bde697 100755 --- a/install-systemd.sh +++ b/install-systemd.sh @@ -22,8 +22,8 @@ if [[ ! -f "${SERVICE_SRC}" ]]; then exit 1 fi -echo "[1/6] Build release binary ..." -sudo -u "${BUILD_USER}" cargo build --release --manifest-path "${PROJECT_DIR}/Cargo.toml" +echo "[1/7] Build release binary ..." +sudo -u "${BUILD_USER}" bash -lc "cd '${PROJECT_DIR}' && cargo build --release --manifest-path '${PROJECT_DIR}/Cargo.toml'" if [[ ! -x "${BIN_PATH}" ]]; then echo "Binary wurde nicht erzeugt: ${BIN_PATH}" >&2