Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion pkg/blobfuse-proxy/install-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,17 @@ then
echo "install blobfuse2 with latest version"
pkg_list="${pkg_list} blobfuse2"
else
pkg_list="${pkg_list} blobfuse2=${BLOBFUSE2_VERSION}"
if echo "${BLOBFUSE2_VERSION}" | grep -q "preview"; then
if dpkg -l | grep -q blobfuse2; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to run dpkg -l comand on the host, another option is $HOST_CMD apt remove -y blobfuse2 || true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handled

$HOST_CMD apt-get remove -y blobfuse2
fi
pkg_list="${pkg_list} blobfuse2-preview=${BLOBFUSE2_VERSION}"
else
if dpkg -l | grep -q blobfuse2-preview; then
$HOST_CMD apt-get remove -y blobfuse2-preview
fi
pkg_list="${pkg_list} blobfuse2=${BLOBFUSE2_VERSION}"
fi
fi
fi

Expand Down