From 12f0ca9223b31f94db1e4ffbe3b167515b59bab9 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 12 Apr 2022 00:34:39 +0200 Subject: [PATCH] Fail if architecture is not amd64 --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 7140e45..9d8ad22 100755 --- a/scripts/install +++ b/scripts/install @@ -35,6 +35,8 @@ app=$YNH_APP_INSTANCE_NAME #================================================= ynh_script_progression --message="Validating installation parameters..." --weight=1 +[ $YNH_ARCH == "amd64" ] || ynh_die --message="Unfortunately, Focalboard only provides binaries for AMD64 systems." + final_path=/opt/yunohost/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder"