From d8af85d68dcbb32a41ea401bb5c9a898dade79e4 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 5 Jan 2022 21:56:33 +0100 Subject: [PATCH] Prevent installation on ARM and ARMHF --- scripts/install | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index 5ad8cd1..39def25 100755 --- a/scripts/install +++ b/scripts/install @@ -31,6 +31,12 @@ app=$YNH_APP_INSTANCE_NAME #================================================= ynh_script_progression --message="Validating installation parameters..." --weight=1 +# Stop if architecture is 32-bit ARM +case $YNH_ARCH in + arm|armhf) ynh_die --message="Sorry, your architecture $YNH_ARCH is not supported by NocoDB. Aborting.";; + *) ;; +esac + final_path=/opt/yunohost/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder"