HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: //smc/go2aliyun_client2.7.7_linux_x86_64/Check/Test/architecture_unsupport.sh
#!/bin/bash

test::architecture_unsupport() {
    local src_os_type=$1
    local tar_os_type=$2

    # get architecture
    architecture=$(uname -m)

    if [[ "$architecture" != "x86_64" && "$architecture" != "aarch64" ]]; then
        echo "Architecture '$architecture' Is Not Support"
        exit 111
    fi

    if [[ "$architecture" == "aarch64" && "$tar_os_type" == "AliLinux2" ]]; then
        echo "'$tar_os_type' Is Not Support On aarch64"
        exit 111
    fi
    
    exit 0
}

test::architecture_unsupport $1 $2