From c4fbbecd77f877c83a5a27fb34568ff71f2125a5 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Tue, 9 Apr 2019 22:19:55 +0200 Subject: [PATCH] Update upgrade and restore scripts as well --- scripts/restore | 13 +++++++------ scripts/upgrade | 8 +++++++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/scripts/restore b/scripts/restore index e994b10..bd1a62e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -4,12 +4,7 @@ # IMPORT GENERIC HELPERS #================================================= -# if [ ! -e _common.sh ]; then -# # Get the _common.sh file if it's not in the current directory -# cp ../settings/scripts/_common.sh ./_common.sh -# chmod a+rx _common.sh -# fi -# source _common.sh +source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers #================================================= @@ -41,6 +36,12 @@ test ! -d $final_path \ #================================================= # STANDARD RESTORATION STEPS +#================================================= +# INSTALL DEPENDENCIES +#================================================= + +ynh_install_app_dependencies $pkg_dependencies + #================================================= # RESTORE THE NGINX CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index fa8304a..79bce52 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -6,7 +6,7 @@ # IMPORT GENERIC HELPERS #================================================= -# source _common.sh +source _common.sh source /usr/share/yunohost/helpers #================================================= @@ -58,6 +58,12 @@ ynh_secure_remove "/etc/cron.d/$app" # Normalize the URL path syntax path_url=$(ynh_normalize_url_path $path_url) +#================================================= +# INSTALL DEPENDENCIES +#================================================= + +ynh_install_app_dependencies $pkg_dependencies + #================================================= # STANDARD UPGRADE STEPS #=================================================