diff --git a/scripts/install b/scripts/install index af97734..9862f1d 100755 --- a/scripts/install +++ b/scripts/install @@ -11,15 +11,6 @@ source detect_arch source ynh_systemd_action source /usr/share/yunohost/helpers -#================================================= -# MANAGE APPLICATION NOT COMPATIBLE WITH ARM -#================================================= - -if [ $architecture = "arm" ] -then - ynh_die "WriteFreely not available on Arm" -fi - #================================================= # MANAGE SCRIPT FAILURE #================================================= @@ -31,6 +22,15 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors +#================================================= +# MANAGE APPLICATION NOT COMPATIBLE WITH ARM +#================================================= + +if [ $architecture = "arm" ] +then + ynh_die "WriteFreely not available on Arm" +fi + #================================================= # RETRIEVE ARGUMENTS FROM THE MANIFEST #=================================================