diff --git a/scripts/remove b/scripts/remove index 63895c2..39d2bc2 100755 --- a/scripts/remove +++ b/scripts/remove @@ -27,6 +27,17 @@ ynh_remove_systemd_config ynh_remove_nginx_config + +#================================================= +# REMOVE NPM MODULE +#================================================= +ynh_script_progression --message="Removing Peertube remote runner npm module..." --weight=1 + +pushd "$install_dir" + ynh_use_nodejs + ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir/config" NODE_ENV=production $ynh_npm remove @peertube/peertube-runner +popd + #================================================= # END OF SCRIPT #=================================================