1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotify_ynh.git synced 2024-09-03 20:36:26 +02:00

fix architecture detection

This commit is contained in:
Clément 2020-06-09 21:50:55 +02:00
parent f4e55eb826
commit 1681ee4692
2 changed files with 11 additions and 3 deletions

6
conf/arm-7.src Normal file
View file

@ -0,0 +1,6 @@
SOURCE_URL=https://github.com/gotify/server/releases/download/v2.0.16/gotify-linux-arm-7.zip
SOURCE_SUM=c0919fa83fadf6ffee12b14dd94c0662bff69e83c11f51f9f1228ac374f91bf0
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=false
SOURCE_FILENAME=gotify-linux-arm-7

View file

@ -12,11 +12,13 @@ ynh_delete_file_checksum () {
ynh_app_setting_delete $app $checksum_setting_name
}
if [ -n "$(uname -m | grep 64)" ]; then
if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep aarch64)" ]; then
architecture="arm64"
elif [ -n "$(uname -m | grep 64)" ]; then
architecture="amd64"
elif [ -n "$(uname -m | grep arm)" ]; then
architecture="arm"
architecture="arm-7"
else
ynh_die "Unable to detect your achitecture, please open a bug describing \
your hardware and the result of the command \"uname -m\"." 1
fi
fi