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].

This commit is contained in:
Torsten Schulz (local)
2026-03-04 17:24:43 +01:00
parent 91a58855eb
commit 0037ac5c28

View File

@@ -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