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:
parent
42f0830ea3
commit
ee7bec9ceb
2 changed files with 6 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue