From f37c15be9480229fa4623d4988457ed8a98d84c3 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 29 Jan 2019 02:13:16 +0100 Subject: [PATCH] Check that architecture is supported --- scripts/install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index d2d3064..3bc3e21 100755 --- a/scripts/install +++ b/scripts/install @@ -26,6 +26,10 @@ app=$YNH_APP_INSTANCE_NAME #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= + +# Check machine architecture (in particular, we don't support ARM and 32bit machines) +[[ $(uname -m) == "x86_64" ]] || ynh_die "Sorry, but this app can only be installed on a x86, 64 bits machine :(" + final_path=/var/www/$app test ! -e "$final_path" || ynh_die "This path already contains a folder"