File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -31,5 +31,11 @@ DISTRIBUTION=$($HOST_CMD cat /etc/os-release | grep ^ID= | cut -d'=' -f2 | tr -d
31
31
ARCH=$( $HOST_CMD uname -m)
32
32
echo " Linux distribution: $DISTRIBUTION , Arch: $ARCH "
33
33
34
+ # Only install aznfs-mount on ubuntu and azurelinux
35
+ if [ " $DISTRIBUTION " != " azurelinux" ] && [ " $DISTRIBUTION " != " ubuntu" ]; then
36
+ echo " aznfs-mount is not supported on Linux distribution: $DISTRIBUTION "
37
+ exit 0
38
+ fi
39
+
34
40
. ./azurefile-proxy/install-proxy.sh
35
41
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ if [ "${INSTALL_AZNFS_MOUNT}" = "true" ];then
39
39
AZNFS_VERSION=" 0.1.548"
40
40
echo " install aznfs v$AZNFS_VERSION ...."
41
41
$HOST_CMD curl -fsSL https://github.com/Azure/AZNFS-mount/releases/download/$AZNFS_VERSION /aznfs_install.sh | $HOST_CMD bash
42
+ else
43
+ echo " aznfs-mount is not supported on Linux distribution: $DISTRIBUTION "
44
+ exit 0
42
45
fi
43
46
44
47
# Only install aznfswatchdogv4, so aznfswatchdogv3 is not needed
You can’t perform that action at this time.
0 commit comments