diff --git a/deployment/aliyun/deploy-rust-lob-release.sh b/deployment/aliyun/deploy-rust-lob-release.sh index 1f9c15ea1..8ed1f6b99 100755 --- a/deployment/aliyun/deploy-rust-lob-release.sh +++ b/deployment/aliyun/deploy-rust-lob-release.sh @@ -94,7 +94,7 @@ for asset in "${assets[@]}"; do done BUNDLE_PATH="$TMP_DIR/deployment.tar" -tar -C "$SCRIPT_DIR" -cf "$BUNDLE_PATH" "${assets[@]}" +COPYFILE_DISABLE=1 tar -C "$SCRIPT_DIR" -cf "$BUNDLE_PATH" "${assets[@]}" if command -v sha256sum >/dev/null 2>&1; then BUNDLE_SHA256=$(sha256sum "$BUNDLE_PATH" | awk '{print $1}') else @@ -189,6 +189,7 @@ if ! id hftcollector >/dev/null 2>&1; then --shell /usr/sbin/nologin hftcollector fi install -d -m 0755 /opt/monday/bin +install -d -m 0755 /opt/monday/releases release_root=/opt/monday/releases/binance-lob-archiver release_dir="$release_root/$artifact_sha256" release_binary="$release_dir/binance-lob-archiver" diff --git a/deployment/aliyun/test-rust-lob-control-plane.sh b/deployment/aliyun/test-rust-lob-control-plane.sh index 3ef8c4f9f..2e2358a7a 100755 --- a/deployment/aliyun/test-rust-lob-control-plane.sh +++ b/deployment/aliyun/test-rust-lob-control-plane.sh @@ -199,6 +199,9 @@ grep -Fq 'binance-lob-archiver@usdm.service' "$CUTOVER" grep -Fq 'legacy collector unit must be disabled before cutover' "$CUTOVER" grep -Fq 'release_staging=$(mktemp -d "$release_root/.${artifact_sha256}.new.XXXXXX")' \ "$INSTALL_RELEASE" +grep -Fq 'COPYFILE_DISABLE=1 tar -C "$SCRIPT_DIR" -cf "$BUNDLE_PATH" "${assets[@]}"' \ + "$INSTALL_RELEASE" +grep -Fq 'install -d -m 0755 /opt/monday/releases' "$INSTALL_RELEASE" grep -Fq 'chmod 0755 "$release_staging"' "$INSTALL_RELEASE" grep -Fq 'release directory must be traversable with mode 0755' "$INSTALL_RELEASE" grep -Fq 'runuser -u hftcollector -- "$release_binary" --self-test' "$INSTALL_RELEASE"