From 858d0d0bc16e3c2ed1f90ab1de98cabf8df398d3 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 40d8bb431..ca12e6a51 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -253,8 +253,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 ee15bb968..0e00cc637 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