From 30d22707b1d6e23ffd103cb9cfe4673c698b8f63 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 15 Mar 2019 19:45:51 +0100 Subject: [PATCH] Move or remove arm detection --- scripts/backup | 9 --------- scripts/remove | 9 --------- scripts/restore | 18 +++++++++--------- scripts/upgrade | 9 --------- 4 files changed, 9 insertions(+), 36 deletions(-) diff --git a/scripts/backup b/scripts/backup index 5e002b0..b41461a 100755 --- a/scripts/backup +++ b/scripts/backup @@ -11,15 +11,6 @@ source ../settings/scripts/detect_arch source ../settings/scripts/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 #================================================= diff --git a/scripts/remove b/scripts/remove index 048c44c..0aaaaf0 100755 --- a/scripts/remove +++ b/scripts/remove @@ -11,15 +11,6 @@ source _common.sh 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 - #================================================= # LOAD SETTINGS #================================================= diff --git a/scripts/restore b/scripts/restore index 5617b42..6b80dee 100755 --- a/scripts/restore +++ b/scripts/restore @@ -11,15 +11,6 @@ source ../settings/scripts/detect_arch source ../settings/scripts/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 #================================================= @@ -53,6 +44,15 @@ ynh_webpath_available $domain $path_url \ test ! -d $final_path \ || ynh_die "There is already a directory: $final_path " +#================================================= +# MANAGE APPLICATION NOT COMPATIBLE WITH ARM +#================================================= + +if [ $architecture = "arm" ] +then + ynh_die "WriteFreely not available on Arm" +fi + #================================================= # STANDARD RESTORATION STEPS #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9e3924c..a37ed12 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -12,15 +12,6 @@ source ynh_systemd_action source ynh_check_app_version_changed source /usr/share/yunohost/helpers -#================================================= -# MANAGE APPLICATION NOT COMPATIBLE WITH ARM -#================================================= - -if [ $architecture = "arm" ] -then - ynh_die "WriteFreely not available on Arm" -fi - #================================================= # LOAD SETTINGS #=================================================