From 5ec29f81fd7db593aa3c29acdf237f8b6de03e21 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 22 Oct 2022 09:25:01 +0200 Subject: [PATCH] Update install --- scripts/install | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index 4548150..ac64594 100644 --- a/scripts/install +++ b/scripts/install @@ -34,6 +34,12 @@ app=$YNH_APP_INSTANCE_NAME #================================================= ynh_script_progression --message="Validating installation parameters..." --weight=1 +# Stop if architecture is ARM +case $YNH_ARCH in + arm*|armhf) ynh_die --message="Sorry, your architecture $YNH_ARCH is not supported by CodiMD. Aborting.";; + *) ;; +esac + final_path=/var/www/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder"