@@ -29,17 +29,24 @@ echo "Linux distribution: $DISTRIBUTION"
29
29
30
30
if [ " ${DISTRIBUTION} " = " ubuntu" ] && ([ " ${INSTALL_BLOBFUSE} " = " true" ] || [ " ${INSTALL_BLOBFUSE2} " = " true" ])
31
31
then
32
- cp /blobfuse-proxy/packages-microsoft-prod.deb /host/etc/
32
+ release=$( $HOST_CMD lsb_release -rs)
33
+ echo " Ubuntu release: $release "
34
+
35
+ if [ " $release " = " 22.04" ]
36
+ then
37
+ cp /blobfuse-proxy/packages-microsoft-prod-22.04.deb /host/etc/packages-microsoft-prod.deb
38
+ else
39
+ cp /blobfuse-proxy/packages-microsoft-prod-18.04.deb /host/etc/packages-microsoft-prod.deb
40
+ fi
41
+
33
42
# when running dpkg -i /etc/packages-microsoft-prod.deb, need to enter y to continue.
34
43
# refer to https://stackoverflow.com/questions/45349571/how-to-install-deb-with-dpkg-non-interactively
35
44
yes | $HOST_CMD dpkg -i /etc/packages-microsoft-prod.deb && $HOST_CMD apt update
36
45
37
46
pkg_list=" "
38
- if [ " ${INSTALL_BLOBFUSE} " = " true" ]
47
+ if [ " ${INSTALL_BLOBFUSE} " = " true" ] && [ " $release " = " 18.04 " ]
39
48
then
40
- if [ " $release " = " 18.04" ]; then
41
- pkg_list=" ${pkg_list} fuse"
42
- fi
49
+ pkg_list=" ${pkg_list} fuse"
43
50
# install blobfuse with latest version or specific version
44
51
if [ -z " ${BLOBFUSE_VERSION} " ]; then
45
52
echo " install blobfuse with latest version"
51
58
52
59
if [ " ${INSTALL_BLOBFUSE2} " = " true" ]
53
60
then
54
- release=$( $HOST_CMD lsb_release -rs)
55
61
if [ " $release " = " 18.04" ]; then
56
62
echo " install fuse for blobfuse2"
57
63
pkg_list=" ${pkg_list} fuse"
0 commit comments