1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00

Fix error message for arm64

This commit is contained in:
Kay0u 2020-08-27 12:33:33 +02:00
parent 42f0830ea3
commit ee7bec9ceb
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 6 additions and 3 deletions

View file

@ -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"

View file

@ -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"