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 #=================================================