From 76af5a1999dda0695aa26dbf59ab3cc8ea531003 Mon Sep 17 00:00:00 2001 From: Olivier BILHAUT Date: Fri, 2 Feb 2018 17:02:25 +0100 Subject: [PATCH] Modified upgrade script start to be compliant with generic script --- scripts/upgrade | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 4838351..1d38474 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,15 +1,22 @@ #!/bin/bash -# Exit on command errors and treat unset variables as an error -set -eu +#================================================= +# GENERIC START +#================================================= +# IMPORT GENERIC HELPERS +#================================================= + +source _common.sh +source /usr/share/yunohost/helpers +source ./_extrahelpers # Really needed ? + +#================================================= +# LOAD SETTINGS +#================================================= app=$YNH_APP_INSTANCE_NAME version=$(cat ../sources/version) -# Source YunoHost helpers - source /usr/share/yunohost/helpers - source ./_extrahelpers - # Retrieve app settings domain=$(ynh_app_setting_get "$app" domain) path=$(ynh_app_setting_get "$app" path)