From d1c35717c5d549536d4629da12dc394b111b7a24 Mon Sep 17 00:00:00 2001 From: Istiak Ferdous <30789544+istiak101@users.noreply.github.com> Date: Thu, 9 Sep 2021 01:20:11 +0600 Subject: [PATCH] Fix architecture detection Previously aarch64 would be detected as valid system while it is not yet supported. --- cyberpanel.sh | 4 ++-- cyberpanel_upgrade.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 268863983..479bf9ce8 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -248,8 +248,8 @@ else fi -if ! uname -m | grep -q 64 ; then - echo -e "x64 system is required...\n" +if ! uname -m | grep -q x86_64 ; then + echo -e "x86_64 system is required...\n" exit fi diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index 0d9983f5d..4da8ca91c 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -108,8 +108,8 @@ if [[ ! -f /etc/os-release ]] ; then exit fi -if ! uname -m | grep -q 64 ; then - echo -e "x64 system is required...\n" +if ! uname -m | grep -q x86_64 ; then + echo -e "x86_64 system is required...\n" exit fi