diff --git a/README.md b/README.md index a980b3b..0984dbc 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # Etherpad MyPads for YunoHost -[![Integration level](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://dash.yunohost.org/appci/app/etherpad_mypads) ![Working status](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://ci-apps.yunohost.org/ci/apps/etherpad_mypads/) ![Working status](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) [![Install Etherpad MyPads with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=etherpad_mypads) @@ -23,18 +23,13 @@ This version of Etherpad is preconfigured with a collection of plugins: - [ep_mypads](https://www.npmjs.com/package/ep_mypads) - *Groups and private pads for etherpad* - [ep_align](https://www.npmjs.com/package/ep_align) - *Add Left/Center/Right/Justify alignment* - [ep_author_hover](https://www.npmjs.com/package/ep_author_hover) - *Display author names when hovereing text* -- [ep_comments_page](https://www.npmjs.com/package/ep_comments_page) - *Add comments on sidebar and link it to the text.* -- [ep_countable](https://www.npmjs.com/package/ep_countable) - *Add paragraphs, words and characters count* - [ep_delete_empty_pads](https://www.npmjs.com/package/ep_delete_empty_pads) - *Delete pads which were never edited* -- [ep_font_color](https://www.npmjs.com/package/ep_font_color) - *Be able to change font color* - [ep_font_size](https://www.npmjs.com/package/ep_font_size) - *Be able to change font size* - [ep_headings2](https://www.npmjs.com/package/ep_headings2) - *Be able to set text as headers* -- [ep_markdown](https://www.npmjs.com/package/ep_markdown) - *Edit and export as Markdown* -- [ep_spellcheck](https://www.npmjs.com/package/ep_spellcheck) - *Add spell checking* -- [ep_subscript_and_superscript](https://www.npmjs.com/package/ep_subscript_and_superscript) - *Support for subscript and superscript* -**Shipped version:** 1.9.1~ynh3 + +**Shipped version:** 2.1.1~ynh1 **Demo:** diff --git a/README_es.md b/README_es.md index 80f462f..700e3a3 100644 --- a/README_es.md +++ b/README_es.md @@ -5,7 +5,7 @@ No se debe editar a mano. # Etherpad MyPads para Yunohost -[![Nivel de integración](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://dash.yunohost.org/appci/app/etherpad_mypads) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) +[![Nivel de integración](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://ci-apps.yunohost.org/ci/apps/etherpad_mypads/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) [![Instalar Etherpad MyPads con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=etherpad_mypads) @@ -23,18 +23,13 @@ This version of Etherpad is preconfigured with a collection of plugins: - [ep_mypads](https://www.npmjs.com/package/ep_mypads) - *Groups and private pads for etherpad* - [ep_align](https://www.npmjs.com/package/ep_align) - *Add Left/Center/Right/Justify alignment* - [ep_author_hover](https://www.npmjs.com/package/ep_author_hover) - *Display author names when hovereing text* -- [ep_comments_page](https://www.npmjs.com/package/ep_comments_page) - *Add comments on sidebar and link it to the text.* -- [ep_countable](https://www.npmjs.com/package/ep_countable) - *Add paragraphs, words and characters count* - [ep_delete_empty_pads](https://www.npmjs.com/package/ep_delete_empty_pads) - *Delete pads which were never edited* -- [ep_font_color](https://www.npmjs.com/package/ep_font_color) - *Be able to change font color* - [ep_font_size](https://www.npmjs.com/package/ep_font_size) - *Be able to change font size* - [ep_headings2](https://www.npmjs.com/package/ep_headings2) - *Be able to set text as headers* -- [ep_markdown](https://www.npmjs.com/package/ep_markdown) - *Edit and export as Markdown* -- [ep_spellcheck](https://www.npmjs.com/package/ep_spellcheck) - *Add spell checking* -- [ep_subscript_and_superscript](https://www.npmjs.com/package/ep_subscript_and_superscript) - *Support for subscript and superscript* -**Versión actual:** 1.9.1~ynh3 + +**Versión actual:** 2.1.1~ynh1 **Demo:** diff --git a/README_eu.md b/README_eu.md index 477b315..b9fd25a 100644 --- a/README_eu.md +++ b/README_eu.md @@ -5,7 +5,7 @@ EZ editatu eskuz. # Etherpad MyPads YunoHost-erako -[![Integrazio maila](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://dash.yunohost.org/appci/app/etherpad_mypads) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) +[![Integrazio maila](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://ci-apps.yunohost.org/ci/apps/etherpad_mypads/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) [![Instalatu Etherpad MyPads YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=etherpad_mypads) @@ -23,18 +23,13 @@ This version of Etherpad is preconfigured with a collection of plugins: - [ep_mypads](https://www.npmjs.com/package/ep_mypads) - *Groups and private pads for etherpad* - [ep_align](https://www.npmjs.com/package/ep_align) - *Add Left/Center/Right/Justify alignment* - [ep_author_hover](https://www.npmjs.com/package/ep_author_hover) - *Display author names when hovereing text* -- [ep_comments_page](https://www.npmjs.com/package/ep_comments_page) - *Add comments on sidebar and link it to the text.* -- [ep_countable](https://www.npmjs.com/package/ep_countable) - *Add paragraphs, words and characters count* - [ep_delete_empty_pads](https://www.npmjs.com/package/ep_delete_empty_pads) - *Delete pads which were never edited* -- [ep_font_color](https://www.npmjs.com/package/ep_font_color) - *Be able to change font color* - [ep_font_size](https://www.npmjs.com/package/ep_font_size) - *Be able to change font size* - [ep_headings2](https://www.npmjs.com/package/ep_headings2) - *Be able to set text as headers* -- [ep_markdown](https://www.npmjs.com/package/ep_markdown) - *Edit and export as Markdown* -- [ep_spellcheck](https://www.npmjs.com/package/ep_spellcheck) - *Add spell checking* -- [ep_subscript_and_superscript](https://www.npmjs.com/package/ep_subscript_and_superscript) - *Support for subscript and superscript* -**Paketatutako bertsioa:** 1.9.1~ynh3 + +**Paketatutako bertsioa:** 2.1.1~ynh1 **Demoa:** diff --git a/README_fr.md b/README_fr.md index 648c7db..52623f4 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main. # Etherpad MyPads pour YunoHost -[![Niveau d’intégration](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://dash.yunohost.org/appci/app/etherpad_mypads) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://ci-apps.yunohost.org/ci/apps/etherpad_mypads/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) [![Installer Etherpad MyPads avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=etherpad_mypads) @@ -20,21 +20,15 @@ Etherpad est un éditeur collaboratif en temps réel évolutif pour des milliers Cette version d'Etherpad est préconfigurée avec une collection de plugins: -- [ep_mypads](https://www.npmjs.com/package/ep_mypads) - *Groupes et pads privés pour etherpad* +- [ep_mypads](https://www.npmjs.com/package/ep_mypads) - *Groupes et pads privés pour Etherpad* - [ep_align](https://www.npmjs.com/package/ep_align) - *Ajout de l'alignement à gauche/centre/droit/justifié* - [ep_author_hover](https://www.npmjs.com/package/ep_author_hover) - *Affichage de l'auteur lorsqu'on passe la souris au dessus d'un texte* -- [ep_comments_page](https://www.npmjs.com/package/ep_comments_page) - *Ajout de commentaire dans la barre latéral + lien avec le texte du pad* -- [ep_countable](https://www.npmjs.com/package/ep_countable) - *Ajout du compte de paragraphes, mots, caractères* - [ep_delete_empty_pads](https://www.npmjs.com/package/ep_delete_empty_pads) - *Suppression des pads qui n'ont jamais été édités* -- [ep_font_color](https://www.npmjs.com/package/ep_font_color) - *Possibilité de changer la couleur de la police* - [ep_font_size](https://www.npmjs.com/package/ep_font_size) - *Possibilité de changer la taille de la police* - [ep_headings2](https://www.npmjs.com/package/ep_headings2) - *Possibilité de définir des titres* -- [ep_markdown](https://www.npmjs.com/package/ep_markdown) - *Editiion et export en Markdown* -- [ep_spellcheck](https://www.npmjs.com/package/ep_spellcheck) - *Ajout de la correction orthographique* -- [ep_subscript_and_superscript](https://www.npmjs.com/package/ep_subscript_and_superscript) - *Support des exposants et indices* -**Version incluse :** 1.9.1~ynh3 +**Version incluse :** 2.1.1~ynh1 **Démo :** diff --git a/README_gl.md b/README_gl.md index b296f95..6158b9b 100644 --- a/README_gl.md +++ b/README_gl.md @@ -5,7 +5,7 @@ NON debe editarse manualmente. # Etherpad MyPads para YunoHost -[![Nivel de integración](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://dash.yunohost.org/appci/app/etherpad_mypads) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) +[![Nivel de integración](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://ci-apps.yunohost.org/ci/apps/etherpad_mypads/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) [![Instalar Etherpad MyPads con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=etherpad_mypads) @@ -23,18 +23,13 @@ This version of Etherpad is preconfigured with a collection of plugins: - [ep_mypads](https://www.npmjs.com/package/ep_mypads) - *Groups and private pads for etherpad* - [ep_align](https://www.npmjs.com/package/ep_align) - *Add Left/Center/Right/Justify alignment* - [ep_author_hover](https://www.npmjs.com/package/ep_author_hover) - *Display author names when hovereing text* -- [ep_comments_page](https://www.npmjs.com/package/ep_comments_page) - *Add comments on sidebar and link it to the text.* -- [ep_countable](https://www.npmjs.com/package/ep_countable) - *Add paragraphs, words and characters count* - [ep_delete_empty_pads](https://www.npmjs.com/package/ep_delete_empty_pads) - *Delete pads which were never edited* -- [ep_font_color](https://www.npmjs.com/package/ep_font_color) - *Be able to change font color* - [ep_font_size](https://www.npmjs.com/package/ep_font_size) - *Be able to change font size* - [ep_headings2](https://www.npmjs.com/package/ep_headings2) - *Be able to set text as headers* -- [ep_markdown](https://www.npmjs.com/package/ep_markdown) - *Edit and export as Markdown* -- [ep_spellcheck](https://www.npmjs.com/package/ep_spellcheck) - *Add spell checking* -- [ep_subscript_and_superscript](https://www.npmjs.com/package/ep_subscript_and_superscript) - *Support for subscript and superscript* -**Versión proporcionada:** 1.9.1~ynh3 + +**Versión proporcionada:** 2.1.1~ynh1 **Demo:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 9b69f57..89603c4 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -5,7 +5,7 @@ # YunoHost 上的 Etherpad MyPads -[![集成程度](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://dash.yunohost.org/appci/app/etherpad_mypads) ![工作状态](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) +[![集成程度](https://dash.yunohost.org/integration/etherpad_mypads.svg)](https://ci-apps.yunohost.org/ci/apps/etherpad_mypads/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/etherpad_mypads.maintain.svg) [![使用 YunoHost 安装 Etherpad MyPads](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=etherpad_mypads) @@ -23,18 +23,13 @@ This version of Etherpad is preconfigured with a collection of plugins: - [ep_mypads](https://www.npmjs.com/package/ep_mypads) - *Groups and private pads for etherpad* - [ep_align](https://www.npmjs.com/package/ep_align) - *Add Left/Center/Right/Justify alignment* - [ep_author_hover](https://www.npmjs.com/package/ep_author_hover) - *Display author names when hovereing text* -- [ep_comments_page](https://www.npmjs.com/package/ep_comments_page) - *Add comments on sidebar and link it to the text.* -- [ep_countable](https://www.npmjs.com/package/ep_countable) - *Add paragraphs, words and characters count* - [ep_delete_empty_pads](https://www.npmjs.com/package/ep_delete_empty_pads) - *Delete pads which were never edited* -- [ep_font_color](https://www.npmjs.com/package/ep_font_color) - *Be able to change font color* - [ep_font_size](https://www.npmjs.com/package/ep_font_size) - *Be able to change font size* - [ep_headings2](https://www.npmjs.com/package/ep_headings2) - *Be able to set text as headers* -- [ep_markdown](https://www.npmjs.com/package/ep_markdown) - *Edit and export as Markdown* -- [ep_spellcheck](https://www.npmjs.com/package/ep_spellcheck) - *Add spell checking* -- [ep_subscript_and_superscript](https://www.npmjs.com/package/ep_subscript_and_superscript) - *Support for subscript and superscript* -**分发版本:** 1.9.1~ynh3 + +**分发版本:** 2.1.1~ynh1 **演示:** diff --git a/conf/nginx.conf b/conf/nginx.conf index ecb5289..af28607 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,6 +5,8 @@ location __PATH__/ { proxy_set_header Host $host; proxy_pass_header Server; + client_max_body_size 50M; + # be careful, this line doesn't override any proxy_buffering on set in a conf.d/file.conf proxy_buffering off; more_set_headers "X-Frame-Options : ALLOWALL"; diff --git a/conf/settings.json b/conf/settings.json index d51e36c..97c6d68 100644 --- a/conf/settings.json +++ b/conf/settings.json @@ -434,7 +434,7 @@ __COMMENT_IF_LDAP_DISABLED__ }, /* * Restrict socket.io transport methods */ - "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"], + "socketTransportProtocols" : ["websocket", "polling"], "socketIo": { /* diff --git a/conf/systemd.service b/conf/systemd.service index 0684052..0f9ef24 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -9,9 +9,8 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment=ETHERPAD_PRODUCTION=true Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=__YNH_NODE__ __INSTALL_DIR__/src/node/server.js -StandardOutput=append:/var/log/__APP__/etherpad.log -StandardError=inherit +Environment="NODE_ENV=production" +ExecStart=__INSTALL_DIR__/bin/run.sh Restart=always # Sandboxing options to harden security diff --git a/doc/ADMIN.md b/doc/ADMIN.md index 9a80ecc..b5a7637 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -1,4 +1,4 @@ -You can access two different admin panels, for Etherpad by accessing `__DOMAIN____PATH__admin` and for MyPads by `__DOMAIN____PATH__/mypads/?/admin`. +You can access two different admin panels, for Etherpad by accessing `__DOMAIN____PATH__/admin` and for MyPads by `__DOMAIN____PATH__/mypads/?/admin`. You can also find a configuration file for Etherpad at this path `__INSTALL_DIR__/settings.json`. *Skin Builder* (accessible at this address `https://__DOMAIN____PATH__/pad/p/test#skinvariantsbuilder`) allows you to customize the skin of your pad. It will give you a parameter to copy into your configuration file `__INSTALL_DIR__/settings.json`. diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md index 3e62731..2a97a25 100644 --- a/doc/ADMIN_fr.md +++ b/doc/ADMIN_fr.md @@ -1,3 +1,3 @@ -Vous pouvez accéder à deux panneaux d'administration différents, pour Etherpad en accédant à `__DOMAIN____PATH__admin` et pour MyPads par `__DOMAIN____PATH__/mypads/?/admin`. Vous pouvez également trouver le fichier de configuration pour Etherpad à `__INSTALL_DIR__/settings.json`. +Vous pouvez accéder à deux panneaux d'administration différents, pour Etherpad en accédant à `__DOMAIN____PATH__/admin` et pour MyPads par `__DOMAIN____PATH__/mypads/?/admin`. Vous pouvez également trouver le fichier de configuration pour Etherpad à `__INSTALL_DIR__/settings.json`. *Skin Builder* (accessible à cette adresse `https://__DOMAIN____PATH__/pad/p/test#skinvariantsbuilder`) vous permet de personnaliser l'apparence de votre pad. Il vous donnera un paramètre à copier dans votre fichier de configuration `__INSTALL_DIR__/settings.json`. diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index ea28461..2781d86 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -5,12 +5,7 @@ This version of Etherpad is preconfigured with a collection of plugins: - [ep_mypads](https://www.npmjs.com/package/ep_mypads) - *Groups and private pads for etherpad* - [ep_align](https://www.npmjs.com/package/ep_align) - *Add Left/Center/Right/Justify alignment* - [ep_author_hover](https://www.npmjs.com/package/ep_author_hover) - *Display author names when hovereing text* -- [ep_comments_page](https://www.npmjs.com/package/ep_comments_page) - *Add comments on sidebar and link it to the text.* -- [ep_countable](https://www.npmjs.com/package/ep_countable) - *Add paragraphs, words and characters count* - [ep_delete_empty_pads](https://www.npmjs.com/package/ep_delete_empty_pads) - *Delete pads which were never edited* -- [ep_font_color](https://www.npmjs.com/package/ep_font_color) - *Be able to change font color* - [ep_font_size](https://www.npmjs.com/package/ep_font_size) - *Be able to change font size* - [ep_headings2](https://www.npmjs.com/package/ep_headings2) - *Be able to set text as headers* -- [ep_markdown](https://www.npmjs.com/package/ep_markdown) - *Edit and export as Markdown* -- [ep_spellcheck](https://www.npmjs.com/package/ep_spellcheck) - *Add spell checking* -- [ep_subscript_and_superscript](https://www.npmjs.com/package/ep_subscript_and_superscript) - *Support for subscript and superscript* + diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md index 6894628..ee14314 100644 --- a/doc/DESCRIPTION_fr.md +++ b/doc/DESCRIPTION_fr.md @@ -2,15 +2,9 @@ Etherpad est un éditeur collaboratif en temps réel évolutif pour des milliers Cette version d'Etherpad est préconfigurée avec une collection de plugins: -- [ep_mypads](https://www.npmjs.com/package/ep_mypads) - *Groupes et pads privés pour etherpad* +- [ep_mypads](https://www.npmjs.com/package/ep_mypads) - *Groupes et pads privés pour Etherpad* - [ep_align](https://www.npmjs.com/package/ep_align) - *Ajout de l'alignement à gauche/centre/droit/justifié* - [ep_author_hover](https://www.npmjs.com/package/ep_author_hover) - *Affichage de l'auteur lorsqu'on passe la souris au dessus d'un texte* -- [ep_comments_page](https://www.npmjs.com/package/ep_comments_page) - *Ajout de commentaire dans la barre latéral + lien avec le texte du pad* -- [ep_countable](https://www.npmjs.com/package/ep_countable) - *Ajout du compte de paragraphes, mots, caractères* - [ep_delete_empty_pads](https://www.npmjs.com/package/ep_delete_empty_pads) - *Suppression des pads qui n'ont jamais été édités* -- [ep_font_color](https://www.npmjs.com/package/ep_font_color) - *Possibilité de changer la couleur de la police* - [ep_font_size](https://www.npmjs.com/package/ep_font_size) - *Possibilité de changer la taille de la police* - [ep_headings2](https://www.npmjs.com/package/ep_headings2) - *Possibilité de définir des titres* -- [ep_markdown](https://www.npmjs.com/package/ep_markdown) - *Editiion et export en Markdown* -- [ep_spellcheck](https://www.npmjs.com/package/ep_spellcheck) - *Ajout de la correction orthographique* -- [ep_subscript_and_superscript](https://www.npmjs.com/package/ep_subscript_and_superscript) - *Support des exposants et indices* diff --git a/doc/POST_INSTALL.md b/doc/POST_INSTALL.md index 11d381d..dfb933b 100644 --- a/doc/POST_INSTALL.md +++ b/doc/POST_INSTALL.md @@ -1,3 +1,3 @@ You can access two different admin panels: -- for Etherpad by accessing https://__DOMAIN____PATH__admin -- for MyPads (if installed) by accessing https://__DOMAIN____PATH__mypads/?/admin +- for Etherpad by accessing https://__DOMAIN____PATH__/admin +- for MyPads (if installed) by accessing https://__DOMAIN____PATH__/mypads/?/admin diff --git a/doc/POST_INSTALL_fr.md b/doc/POST_INSTALL_fr.md index 1840905..a2f69cf 100644 --- a/doc/POST_INSTALL_fr.md +++ b/doc/POST_INSTALL_fr.md @@ -1,3 +1,3 @@ Vous pouvez accéder à deux panneaux d'administration différents : -- pour Etherpad en accédant à https://__DOMAIN____PATH__admin -- pour MyPads (si installé) en accédant à https://__DOMAIN____PATH__mypads/?/admin +- pour Etherpad en accédant à https://__DOMAIN____PATH__/admin +- pour MyPads (si installé) en accédant à https://__DOMAIN____PATH__/mypads/?/admin diff --git a/manifest.toml b/manifest.toml index ed4095d..9aa4cd4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Etherpad MyPads" description.en = "Online editor providing collaborative editing in real-time" description.fr = "Éditeur en ligne fournissant l'édition collaborative en temps réel" -version = "1.9.1~ynh3" +version = "2.1.1~ynh1" maintainers = [] @@ -20,9 +20,12 @@ code = "https://github.com/ether/etherpad-lite" yunohost = ">= 11.2" architectures = ["arm64", "amd64"] multi_instance = true + ldap = false + sso = false -disk = "50M" + +disk = "200M" ram.build = "1500M" ram.runtime = "50M" @@ -80,8 +83,8 @@ ram.runtime = "50M" [resources.sources] [resources.sources.main] - url = "https://github.com/ether/etherpad-lite/archive/1.9.1.tar.gz" - sha256 = "667741235a2bcd8d28a32f5e611b82fb2ea7d11525ff41b8b5478b05a987b047" + url = "https://github.com/ether/etherpad-lite/archive/refs/tags/2.1.1.tar.gz" + sha256 = "dfca3f1ae5583e1154c7888c31944af50f07e22b837594984d50c329d9ea2792" autoupdate.strategy = "latest_github_tag" [resources.system_user] @@ -112,4 +115,4 @@ ram.runtime = "50M" [resources.database] type = "mysql" - + \ No newline at end of file diff --git a/scripts/_common.sh b/scripts/_common.sh index d8e6290..580ccd0 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,24 +5,18 @@ #================================================= # NodeJS version -nodejs_version=14 +nodejs_version=20 # MyPads version # This variable is mostly used to force an upgrade of the package in case of new versions of MyPads. mypads_version=1.7.24 -# Plugin versions -ep_align_version=0.3.53 -ep_author_hover_version=0.3.37 -ep_comments_page_version=1.0.5 -ep_countable_version=0.0.13 +# Plugin versions -> https://static.etherpad.org/index.html +ep_align_version=0.3.95 +ep_author_hover_version=0.3.55 ep_delete_empty_pads_version=0.0.10 -ep_font_color_version=0.0.63 -ep_headings2_version=0.2.44 -ep_markdown_version=0.1.50 -ep_spellcheck_version=0.0.43 -ep_subscript_and_superscript_version=0.2.47 -ep_font_size_version=0.4.44 +ep_headings2_version=0.2.63 +ep_font_size_version=0.4.60 #================================================= # PERSONAL HELPERS diff --git a/scripts/backup b/scripts/backup index 720ff89..a03a317 100644 --- a/scripts/backup +++ b/scripts/backup @@ -22,30 +22,16 @@ ynh_print_info --message="Declaring files to be backed up..." ynh_backup --src_path="$install_dir" #================================================= -# BACKUP THE NGINX CONFIGURATION +# SYSTEM CONFIGURATION #================================================= ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# BACKUP FAIL2BAN CONFIGURATION -#================================================= - ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf" ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" -#================================================= -# SPECIFIC BACKUP -#================================================= -# BACKUP LOGROTATE -#================================================= - ynh_backup --src_path="/etc/logrotate.d/$app" -#================================================= -# BACKUP SYSTEMD -#================================================= - ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= diff --git a/scripts/change_url b/scripts/change_url index 928c47c..74fc748 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -36,7 +36,7 @@ ynh_change_url_nginx_config ynh_script_progression --message="Starting a systemd service..." --weight=10 # Start a systemd service -ynh_systemd_action --service_name=$app --action=restart --line_match="You can access your Etherpad instance at" --log_path="/var/log/$app/etherpad.log" --timeout="120" +ynh_systemd_action --service_name=$app --action=restart --line_match="Your Etherpad version is" --log_path="systemd" #================================================= # DEACTIVE MAINTENANCE MODE diff --git a/scripts/install b/scripts/install index c239422..0c661f0 100644 --- a/scripts/install +++ b/scripts/install @@ -59,7 +59,7 @@ chown $app -R /var/log/$app #================================================= # ADD A CONFIGURATION #================================================= -ynh_script_progression --message="Configure etherpad..." +ynh_script_progression --message="Configure $app..." abiword_path="null" soffice_path="null" @@ -80,7 +80,6 @@ then fi # Calculate and store the config file checksum into the app settings - ynh_add_config --template="settings.json" --destination="$install_dir/settings.json" ynh_add_config --template="credentials.json" --destination="$install_dir/credentials.json" @@ -90,47 +89,23 @@ chown $app:$app "$install_dir/settings.json" chmod 600 "$install_dir/credentials.json" chown $app:$app "$install_dir/credentials.json" -#================================================= -# INSTALL ETHERPAD'S PLUGINS -#================================================= -ynh_script_progression --message="Installing Etherpad plugins..." --weight=90 - -pushd "$install_dir" - # Add Left/Center/Right/Justify to lines of text in a pad - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_align@${ep_align_version} - # Framapad - Adds author names to span titles - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_author_hover@${ep_author_hover_version} - # Framapad - Adds comments on sidebar and link it to the text. - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_comments_page@${ep_comments_page_version} - # Framapad - Displays paragraphs, sentences, words and characters counts. - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_countable@${ep_countable_version} - # Framapad - Delete pads which were never edited - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_delete_empty_pads@${ep_delete_empty_pads_version} - # Framapad - Apply colors to fonts - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_font_color@${ep_font_color_version} - # Framapad - Adds heading support to Etherpad Lite. - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_headings2@${ep_headings2_version} - # Framapad - Edit and Export as Markdown in Etherpad - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_markdown@${ep_markdown_version} - if [ $mypads -eq 1 ]; then - # Framapad - Groups and private pads for Etherpad - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_mypads@${mypads_version} - fi - # Framapad - Add support to do 'Spell checking' - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_spellcheck@${ep_spellcheck_version} - # Framapad - Add support for Subscript and Superscript - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_subscript_and_superscript@${ep_subscript_and_superscript_version} - # Framapad - User Pad Contents font size can be set in settings, this does not effect other peoples views - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_font_size@${ep_font_size_version} -popd - #================================================= # INSTALL ETHERPAD #================================================= -ynh_script_progression --message="Installing Etherpad..." --weight=90 +ynh_script_progression --message="Installing $app..." --weight=30 -pushd $install_dir - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true src/bin/installDeps.sh +pushd "$install_dir" + ynh_exec_warn_less env $ynh_node_load_PATH corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@latest --activate + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true COREPACK_ENABLE_DOWNLOAD_PROMPT=0 bin/installDeps.sh && \ + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm run install-plugins \ + ep_align@${ep_align_version} \ + ep_author_hover@${ep_author_hover_version} \ + ep_delete_empty_pads@${ep_delete_empty_pads_version} \ + ep_headings2@${ep_headings2_version} \ + ep_font_size@${ep_font_size_version} + if [ $mypads -eq 1 ]; then + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm run install-plugins ep_mypads@${mypads_version} + fi popd #================================================= @@ -139,12 +114,12 @@ popd if [ $mypads -eq 1 ] then - ynh_script_progression --message="Tweaking mypad configuration..." --weight=1 + ynh_script_progression --message="Tweaking MyPads configuration..." --weight=1 # Add a link to Etherpad to allow anonymous pads creation from MyPads. ynh_replace_string --match_string="^ *\"DESCRIPTION\": .*" --replace_string="&Pads anonymes" --target_file=$install_dir/node_modules/ep_mypads/static/l10n/fr.json ynh_replace_string --match_string="^ *\"DESCRIPTION\": .*" --replace_string="&Anonymous pads" --target_file=$install_dir/node_modules/ep_mypads/static/l10n/en.json - # And a link to etherpad admin from Mypads. + # And a link to Etherpad admin from MyPads. ynh_replace_string --match_string="^ *\"FOOTER\": .*2.0" --replace_string="& | Etherpad admin" --target_file=$install_dir/node_modules/ep_mypads/static/l10n/en.json ynh_replace_string --match_string="^ *\"FOOTER\": .*2.0" --replace_string="& | Etherpad admin" --target_file=$install_dir/node_modules/ep_mypads/static/l10n/fr.json @@ -172,7 +147,7 @@ ynh_use_logrotate --specific_user=$app/$app ynh_script_progression --message="Starting systemd service..." --weight=20 # Start a systemd service -ynh_systemd_action --service_name=$app --action=restart --line_match="You can access your Etherpad instance at" --log_path="/var/log/$app/etherpad.log" --timeout="120" +ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Your Etherpad version is" if [ $mypads -eq 1 ] then @@ -180,7 +155,7 @@ then ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "../conf/lang_mypads.sql" # Wait for etherpad to be fully started - ynh_systemd_action --action=restart --line_match="You can access your Etherpad instance at" --log_path="/var/log/$app/etherpad.log" --timeout="120" + ynh_systemd_action --action=restart --log_path=systemd --line_match="Your Etherpad version is" fi #================================================= diff --git a/scripts/remove b/scripts/remove index 60e0cd2..2ed0d37 100755 --- a/scripts/remove +++ b/scripts/remove @@ -37,9 +37,6 @@ ynh_remove_nodejs # Remove the dedicated Fail2Ban config ynh_remove_fail2ban_config -# Remove the log files -ynh_secure_remove --file="/var/log/$app" - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index 78789ad..4c0dbfa 100644 --- a/scripts/restore +++ b/scripts/restore @@ -6,7 +6,6 @@ source /usr/share/yunohost/helpers #================================================= # RESTORE THE APP MAIN DIR #================================================= -# ynh_script_progression --message="Restoring the app main directory..." --weight=5 ynh_restore_file --origin_path="$install_dir" @@ -28,7 +27,11 @@ chown $app:$app "$install_dir/credentials.json" ynh_script_progression --message="Restoring system configurations related to $app..." ynh_install_nodejs --nodejs_version=$nodejs_version -ynh_use_nodejs + +pushd "$install_dir" + ynh_use_nodejs + ynh_exec_warn_less env $ynh_node_load_PATH corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@latest --activate +popd ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" @@ -62,7 +65,7 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./ #================================================= ynh_script_progression --message="Reloading NGINX web server and $app's service..." -ynh_systemd_action --service_name=$app --action=restart --line_match="You can access your Etherpad instance at" --log_path="/var/log/$app/etherpad.log" --timeout="120" +ynh_systemd_action --service_name=$app --action=restart --line_match="Your Etherpad version is" --log_path="systemd" ynh_systemd_action --action=reload --service_name=nginx diff --git a/scripts/upgrade b/scripts/upgrade index f08b130..ceed65e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -3,15 +3,13 @@ source _common.sh source /usr/share/yunohost/helpers -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # ACTIVATE MAINTENANCE MODE #================================================= ynh_script_progression --message="Activating maintenance mode..." --weight=2 -# Wait for etherpad to be fully started # (... but why ???) -ynh_systemd_action --action=restart --line_match="You can access your Etherpad instance at" --log_path="/var/log/$app/etherpad.log" --timeout="120" +# Wait for Etherpad to be fully started # (... but why ???) +ynh_systemd_action --action=restart --line_match="Your Etherpad version is" --log_path="systemd" ynh_maintenance_mode_ON @@ -67,14 +65,10 @@ ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name \ #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=4 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=4 - - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="settings.json credentials.json" -fi +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="settings.json credentials.json" chmod -R o-rwx "$install_dir" chown -R $app:$app "$install_dir" @@ -87,13 +81,6 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=5 ynh_install_nodejs --nodejs_version=$nodejs_version ynh_use_nodejs -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=2 - -ynh_add_nginx_config - #================================================= # SPECIFIC UPGRADE #================================================= @@ -107,8 +94,7 @@ chown $app -R /var/log/$app #================================================= # CONFIGURE ETHERPAD #================================================= - -ynh_script_progression --message="Configure etherpad..." +ynh_script_progression --message="Configure $app..." abiword_path="null" soffice_path="null" @@ -139,76 +125,42 @@ chown $app:$app "$install_dir/settings.json" chmod 600 "$install_dir/credentials.json" chown $app:$app "$install_dir/credentials.json" -#================================================= -# INSTALL ETHERPAD'S PLUGINS -#================================================= - -# If upgrading from an old version and table of content is there, remove it -if ynh_compare_current_package_version --comparison lt --version 1.9.1~ynh3 -then - pushd "$install_dir" - if ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm ls 2>/dev/null | grep -q ep_table_of_contents - then - ynh_script_progression --message="Uninstalling ep_table_of_contents..." --weight=2 - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm uninstall ep_table_of_contents - fi - popd -fi - -ynh_script_progression --message="Installing Etherpad plugins..." --weight=10 - -pushd "$install_dir" - # Add Left/Center/Right/Justify to lines of text in a pad - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_align@${ep_align_version} - # Framapad - Adds author names to span titles - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_author_hover@${ep_author_hover_version} - # Framapad - Adds comments on sidebar and link it to the text. - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_comments_page@${ep_comments_page_version} - # Framapad - Displays paragraphs, sentences, words and characters counts. - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_countable@${ep_countable_version} - # Framapad - Delete pads which were never edited - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_delete_empty_pads@${ep_delete_empty_pads_version} - # Framapad - Apply colors to fonts - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_font_color@${ep_font_color_version} - # Framapad - Adds heading support to Etherpad Lite. - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_headings2@${ep_headings2_version} - # Framapad - Edit and Export as Markdown in Etherpad - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_markdown@${ep_markdown_version} - if [ $mypads -eq 1 ]; then - # Framapad - Groups and private pads for Etherpad - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_mypads@${mypads_version} - fi - # Framapad - Add support to do 'Spell checking' - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_spellcheck@${ep_spellcheck_version} - # Framapad - Add support for Subscript and Superscript - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_subscript_and_superscript@${ep_subscript_and_superscript_version} - # Framapad - User Pad Contents font size can be set in settings, this does not effect other peoples views - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install --no-save ep_font_size@${ep_font_size_version} -popd - #================================================= # UPGRADE NPM MODULES #================================================= -ynh_script_progression --message="Upgrading Etherpad..." --weight=10 +ynh_script_progression --message="Upgrading $app..." --weight=10 pushd $install_dir - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true src/bin/installDeps.sh + ynh_exec_warn_less env $ynh_node_load_PATH corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@latest --activate + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH ETHERPAD_PRODUCTION=true COREPACK_ENABLE_DOWNLOAD_PROMPT=0 bin/installDeps.sh && \ + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm run install-plugins \ + ep_align@${ep_align_version} \ + ep_author_hover@${ep_author_hover_version} \ + ep_delete_empty_pads@${ep_delete_empty_pads_version} \ + ep_headings2@${ep_headings2_version} \ + ep_font_size@${ep_font_size_version} + if [ $mypads -eq 1 ]; then + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm run install-plugins \ + ep_mypads@${mypads_version} + fi popd #================================================= # ADD MYPADS LINK #================================================= -if [ "$upgrade_type" == "UPGRADE_APP" ] && [ $mypads -eq 1 ] +if [ $mypads -eq 1 ] then # Find the /div just after the field to open a pad in order to add a link to MyPads plugin. sed -i '157i

MyPads
' $install_dir/src/templates/index.html fi #================================================= -# SETUP SYSTEMD +# REAPPLY SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Configuring systemd service..." --weight=2 +ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 + +ynh_add_nginx_config ynh_add_systemd_config @@ -223,7 +175,7 @@ ynh_use_logrotate --non-append --specific_user=$app/$app #================================================= ynh_script_progression --message="Starting systemd service..." --weight=9 -ynh_systemd_action --service_name=$app --action=restart --line_match="You can access your Etherpad instance at" --log_path="/var/log/$app/etherpad.log" --timeout="120" +ynh_systemd_action --service_name=$app --action=restart --line_match="Your Etherpad version is" --log_path="systemd" #================================================= # UPGRADE FAIL2BAN diff --git a/tests.toml b/tests.toml index 3d73345..6c56928 100644 --- a/tests.toml +++ b/tests.toml @@ -17,22 +17,22 @@ test_format = 1.0 # Commits to test upgrade from # ------------------------------- - test_upgrade_from.4d613658.name = "1.8.17" + test_upgrade_from.4e8049b31708b9f0223ee1a6ca8f153f04ec7e40.name = "1.9.1" -[with_mypads] +[with_MyPads] args.export = "libreoffice" args.mypads = 1 args.useldap = 1 only = ["install.root"] -[with_abiword] +[with_Abiword] args.export = "abiword" args.mypads = 0 args.useldap = 0 only = ["install.root"] -[with_libreoffice] +[with_Libreoffice] args.export = "libreoffice" args.mypads = 0 args.useldap = 0