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