From 77d8c0dfb286591f36ec2a24a30866db66e98151 Mon Sep 17 00:00:00 2001 From: aymhce Date: Mon, 11 Sep 2017 10:55:18 +0000 Subject: [PATCH] add ynh_abort_if_errors --- scripts/backup | 1 + scripts/install | 1 + scripts/restore | 1 + scripts/upgrade | 1 + 4 files changed, 4 insertions(+) diff --git a/scripts/backup b/scripts/backup index 01a5c66..b71bb5a 100755 --- a/scripts/backup +++ b/scripts/backup @@ -3,6 +3,7 @@ set -eu . /usr/share/yunohost/helpers +ynh_abort_if_errors app=$YNH_APP_INSTANCE_NAME diff --git a/scripts/install b/scripts/install index 6b513db..fadf7a3 100755 --- a/scripts/install +++ b/scripts/install @@ -10,6 +10,7 @@ admin=$YNH_APP_ARG_ADMIN # Source YunoHost helpers . /usr/share/yunohost/helpers +ynh_abort_if_errors # Save app settings ynh_app_setting_set "$app" admin "$admin" diff --git a/scripts/restore b/scripts/restore index c8f145a..6d93646 100755 --- a/scripts/restore +++ b/scripts/restore @@ -3,6 +3,7 @@ set -eu . /usr/share/yunohost/helpers +ynh_abort_if_errors app=$YNH_APP_INSTANCE_NAME diff --git a/scripts/upgrade b/scripts/upgrade index bf98dcc..c0a9ba8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -7,6 +7,7 @@ app=$YNH_APP_INSTANCE_NAME # Source YunoHost helpers . /usr/share/yunohost/helpers +ynh_abort_if_errors # Retrieve app settings domain=$(ynh_app_setting_get "$app" domain)