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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user