From 0e570c97c3f7ddd975e7cc2278282924f499a7b5 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 3 Feb 2022 21:18:56 +0100 Subject: [PATCH] Improving prosody --- scripts/install | 5 ----- scripts/upgrade | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 63b226d..4badc73 100644 --- a/scripts/install +++ b/scripts/install @@ -218,11 +218,6 @@ popd #================================================= ynh_script_progression --message="Installing PeerTube livechat plugin..." -if ! yunohost app list | grep -q "prosody" -then - yunohost app install prosody --args "domain=$domain&admin=$admin&language=$language&password=$password" -fi - pushd "$final_path" ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production $ynh_npm run plugin:install -- --npm-name peertube-plugin-livechat popd diff --git a/scripts/upgrade b/scripts/upgrade index 8cd267c..b5e6c97 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -219,6 +219,8 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st if ! yunohost app list | grep -q "prosody" then yunohost app install prosody --args "domain=$domain&admin=$admin&language=$language&password=$password" +elfi + yunohost app upgrade fi #=================================================