diff --git a/scripts/install b/scripts/install index 6b2e860..eedcf6a 100755 --- a/scripts/install +++ b/scripts/install @@ -35,6 +35,12 @@ app=$YNH_APP_INSTANCE_NAME #================================================= ynh_script_progression --message="Validating installation parameters..." --weight=1 +# Check machine architecture (in particular, we don't support ARM and 32bit machines) +if [ $YNH_ARCH != "amd64" ] && [ $YNH_ARCH != "aarch64" ] && [ $YNH_ARCH != "arm64" ] +then + ynh_die --message="Sorry, but this app can only be installed on a 64 bits machine :(" +fi + final_path=/var/www/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder"