Skip to content

Commit fd5b074

Browse files
cvvzk8s-infra-cherrypick-robot
authored andcommitted
fix init.sh
1 parent c56fb33 commit fd5b074

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/blobfuse-proxy/init.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ then
3232
release=$($HOST_CMD lsb_release -rs)
3333
echo "Ubuntu release: $release"
3434

35-
if [ "$release" = "22.04" ]
35+
if [ "$release" \< "22.04" ]
3636
then
37-
cp /blobfuse-proxy/packages-microsoft-prod-22.04.deb /host/etc/packages-microsoft-prod.deb
38-
else
3937
cp /blobfuse-proxy/packages-microsoft-prod-18.04.deb /host/etc/packages-microsoft-prod.deb
38+
else
39+
cp /blobfuse-proxy/packages-microsoft-prod-22.04.deb /host/etc/packages-microsoft-prod.deb
4040
fi
4141

4242
# when running dpkg -i /etc/packages-microsoft-prod.deb, need to enter y to continue.
4343
# refer to https://stackoverflow.com/questions/45349571/how-to-install-deb-with-dpkg-non-interactively
4444
yes | $HOST_CMD dpkg -i /etc/packages-microsoft-prod.deb && $HOST_CMD apt update
4545

4646
pkg_list=""
47-
if [ "${INSTALL_BLOBFUSE}" = "true" ] && [ "$release" = "18.04" ]
47+
if [ "${INSTALL_BLOBFUSE}" = "true" ] && [ "$release" \< "22.04" ]
4848
then
4949
pkg_list="${pkg_list} fuse"
5050
# install blobfuse with latest version or specific version
@@ -58,7 +58,7 @@ then
5858

5959
if [ "${INSTALL_BLOBFUSE2}" = "true" ]
6060
then
61-
if [ "$release" = "18.04" ]; then
61+
if [ "$release" \< "22.04" ]; then
6262
echo "install fuse for blobfuse2"
6363
pkg_list="${pkg_list} fuse"
6464
else

0 commit comments

Comments
 (0)