From 5e3e306a8ffd40553e5dd85f55be847a8c1f0c6e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 26 Feb 2019 18:59:36 +0100 Subject: [PATCH] Fix final_path --- scripts/install | 13 +++++++++++++ scripts/remove | 3 +-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 3e98f25..43c3add 100644 --- a/scripts/install +++ b/scripts/install @@ -128,6 +128,19 @@ ynh_app_setting_set $app db_pwd $db_pwd ynh_psql_test_if_first_run ynh_psql_create_db $db_name $db_name $db_pwd +#================================================= +# DOWNLOAD, CHECK AND UNPACK SOURCE +#================================================= +ynh_print_info "Setting up source files..." + +### `ynh_setup_source` is used to install an app from a zip or tar.gz file, +### downloaded from an upstream source, like a git repository. +### `ynh_setup_source` use the file conf/app.src + +ynh_app_setting_set $app final_path $final_path +# Download, check integrity, uncompress and patch the source from app.src +#ynh_setup_source "$final_path" + #================================================= # NGINX CONFIGURATION #================================================= diff --git a/scripts/remove b/scripts/remove index 84e03e1..446c83a 100644 --- a/scripts/remove +++ b/scripts/remove @@ -41,9 +41,8 @@ ynh_psql_remove_db $db_name $db_name ynh_print_info "Removing dependencies" # Remove metapackage and its dependencies -ynh_package_remove onlyoffice-documentserver -ynh_package_remove nodejs ynh_remove_app_dependencies +ynh_package_remove nodejs #================================================= # REMOVE APP MAIN DIR