Skip to content

Commit 2aef6aa

Browse files
Merge pull request #2137 from jainakanksha-msft/blobfusePreviewRelease
feat: support blobfuse2 preview package install
1 parent 21d1114 commit 2aef6aa

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pkg/blobfuse-proxy/install-proxy.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,17 @@ then
7373
echo "install blobfuse2 with latest version"
7474
pkg_list="${pkg_list} blobfuse2"
7575
else
76-
pkg_list="${pkg_list} blobfuse2=${BLOBFUSE2_VERSION}"
76+
if echo "${BLOBFUSE2_VERSION}" | grep -q "preview"; then
77+
if $HOST_CMD dpkg -l | grep -q blobfuse2; then
78+
$HOST_CMD apt-get remove -y blobfuse2
79+
fi
80+
pkg_list="${pkg_list} blobfuse2-preview=${BLOBFUSE2_VERSION}"
81+
else
82+
if $HOST_CMD dpkg -l | grep -q blobfuse2-preview; then
83+
$HOST_CMD apt-get remove -y blobfuse2-preview
84+
fi
85+
pkg_list="${pkg_list} blobfuse2=${BLOBFUSE2_VERSION}"
86+
fi
7787
fi
7888
fi
7989

0 commit comments

Comments
 (0)