diff --git a/conf/arm-7.src b/conf/arm-7.src new file mode 100644 index 0000000..5f00e53 --- /dev/null +++ b/conf/arm-7.src @@ -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 diff --git a/scripts/_common.sh b/scripts/_common.sh index c104bf7..6638067 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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 \ No newline at end of file