From ee7bec9ceb8036ecd2ce6e3d6b6e99eeee984d15 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Thu, 27 Aug 2020 12:33:33 +0200 Subject: [PATCH] Fix error message for arm64 --- scripts/install | 4 +++- scripts/upgrade | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index be3a555..fcf86b9 100644 --- a/scripts/install +++ b/scripts/install @@ -43,7 +43,9 @@ final_path=/opt/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder" # Detect the system architecture -if [ -n "$(uname -m | grep 64)" ]; then +if [ -n "$(uname -m | grep aarch64)" ]; then + ynh_die "Gitlab is not compatible with arm64 architecture" +elif [ -n "$(uname -m | grep x86_64)" ]; then architecture="x86-64" elif [ -n "$(uname -m | grep 86)" ]; then ynh_die "Gitlab is not compatible with x86 architecture" diff --git a/scripts/upgrade b/scripts/upgrade index 4ff3be6..39cb226 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -84,8 +84,9 @@ fi # If architecture doesn't exist, create it if [ -z "$architecture" ]; then - # Detect the system architecture - if [ -n "$(uname -m | grep 64)" ]; then + if [ -n "$(uname -m | grep aarch64)" ]; then + ynh_die "Gitlab is not compatible with arm64 architecture" + elif [ -n "$(uname -m | grep x86_64)" ]; then architecture="x86-64" elif [ -n "$(uname -m | grep 86)" ]; then ynh_die "Gitlab is not compatible with x86 architecture"