From 18a3facbc61f1bb51f103785d672d74ddbc5dc14 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 28 Nov 2021 09:32:38 +0100 Subject: [PATCH] Die if arch nor amd64 --- scripts/install | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index 684d510..5a0c1c9 100755 --- a/scripts/install +++ b/scripts/install @@ -25,6 +25,7 @@ path_url="/" admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC password=$YNH_APP_ARG_PASSWORD +architecture=$YNH_ARCH app=$YNH_APP_INSTANCE_NAME @@ -39,6 +40,11 @@ test ! -e "$final_path" || ynh_die --message="This path already contains a folde # Register (book) web path ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url +if [[ "$architecture" -ne "amd64" ]] +then + ynh_die --message="Your processor architecture is not supported" +fi + #================================================= # STORE SETTINGS FROM MANIFEST #=================================================