1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/commento_ynh.git synced 2024-09-03 18:16:16 +02:00

Merge pull request #20 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2024-06-17 13:59:30 +02:00 committed by GitHub
commit 22ce802c77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 345 additions and 66 deletions

8
ALL_README.md Normal file
View file

@ -0,0 +1,8 @@
# All available README files by language
- [Read the README in English](README.md)
- [Lea el README en español](README_es.md)
- [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md)
- [阅读中文(简体)的 README](README_zh_Hans.md)

View file

@ -1,5 +1,5 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/readme_generator
N.B.: This README was automatically generated by <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
It shall NOT be edited by hand.
-->
@ -9,10 +9,10 @@ It shall NOT be edited by hand.
[![Install Commento with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=commento)
*[Lire ce readme en français.](./README_fr.md)*
*[Read this README in other languages.](./ALL_README.md)*
> *This package allows you to install Commento quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
> *This package allows you to install Commento quickly and simply on a YunoHost server.*
> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
## Overview
@ -31,29 +31,33 @@ Commento++ allows you to foster discussion on your website if you have a blo
- Email notifications.
**Shipped version:** 1.8.7~ynh2
**Shipped version:** 1.8.7~ynh3
**Demo:** https://demo.souradip.com/chat.html
**Demo:** <https://demo.souradip.com/chat.html>
## Screenshots
![Screenshot of Commento](./doc/screenshots/Screenshot.png)
## :red_circle: Antifeatures
- **Upstream not maintained**: This software is not maintained anymore. Expect it to break down over time, be exposed to unfixed security breaches, etc.
## Documentation and resources
* Official app website: <https://commento.io/>
* Official admin documentation: <https://docs.commento.io/>
* Upstream app code repository: <https://github.com/souramoo/commentoplusplus>
* YunoHost Store: <https://apps.yunohost.org/app/commento>
* Report a bug: <https://github.com/YunoHost-Apps/commento_ynh/issues>
- Official app website: <https://commento.io/>
- Official admin documentation: <https://docs.commento.io/>
- Upstream app code repository: <https://github.com/souramoo/commentoplusplus>
- YunoHost Store: <https://apps.yunohost.org/app/commento>
- Report a bug: <https://github.com/YunoHost-Apps/commento_ynh/issues>
## Developer info
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/commento_ynh/tree/testing).
Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/commento_ynh/tree/testing).
To try the testing branch, please proceed like that.
To try the `testing` branch, please proceed like that:
``` bash
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
or
sudo yunohost app upgrade commento -u https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug

66
README_es.md Normal file
View file

@ -0,0 +1,66 @@
<!--
Este archivo README esta generado automaticamente<https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
No se debe editar a mano.
-->
# Commento para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/commento.svg)](https://dash.yunohost.org/appci/app/commento) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/commento.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/commento.maintain.svg)
[![Instalar Commento con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=commento)
*[Leer este README en otros idiomas.](./ALL_README.md)*
> *Este paquete le permite instalarCommento rapidamente y simplement en un servidor YunoHost.*
> *Si no tiene YunoHost, visita [the guide](https://yunohost.org/install) para aprender como instalarla.*
## Descripción general
Commento++ allows you to foster discussion on your website if you have a blog, you can embed Commento if you want your readers to add comments. It's fast and bloat-free, has a modern interface, and is reasonably secure. Unlike most alternatives, Commento is lightweight and privacy-focused.
### Features
- Markdown support
- Import from Disqus
- Voting
- Automated spam detection (Askimet integration)
- Moderation tools
- Sticky comments
- Thread locking
- Hot-reloading of comments
- Email notifications.
**Versión actual:** 1.8.7~ynh3
**Demo:** <https://demo.souradip.com/chat.html>
## Capturas
![Captura de Commento](./doc/screenshots/Screenshot.png)
## :red_circle: funcionalidades no deseadas
- **Upstream not maintained**: This software is not maintained anymore. Expect it to break down over time, be exposed to unfixed security breaches, etc.
## Documentaciones y recursos
- Sitio web oficial: <https://commento.io/>
- Documentación administrador oficial: <https://docs.commento.io/>
- Repositorio del código fuente oficial de la aplicación : <https://github.com/souramoo/commentoplusplus>
- Catálogo YunoHost: <https://apps.yunohost.org/app/commento>
- Reportar un error: <https://github.com/YunoHost-Apps/commento_ynh/issues>
## Información para desarrolladores
Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/commento_ynh/tree/testing
Para probar la rama `testing`, sigue asÍ:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
o
sudo yunohost app upgrade commento -u https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
```
**Mas informaciones sobre el empaquetado de aplicaciones:** <https://yunohost.org/packaging_apps>

66
README_eu.md Normal file
View file

@ -0,0 +1,66 @@
<!--
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
EZ editatu eskuz.
-->
# Commento YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/commento.svg)](https://dash.yunohost.org/appci/app/commento) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/commento.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/commento.maintain.svg)
[![Instalatu Commento YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=commento)
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
> *Pakete honek Commento YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
## Aurreikuspena
Commento++ allows you to foster discussion on your website if you have a blog, you can embed Commento if you want your readers to add comments. It's fast and bloat-free, has a modern interface, and is reasonably secure. Unlike most alternatives, Commento is lightweight and privacy-focused.
### Features
- Markdown support
- Import from Disqus
- Voting
- Automated spam detection (Askimet integration)
- Moderation tools
- Sticky comments
- Thread locking
- Hot-reloading of comments
- Email notifications.
**Paketatutako bertsioa:** 1.8.7~ynh3
**Demoa:** <https://demo.souradip.com/chat.html>
## Pantaila-argazkiak
![Commento(r)en pantaila-argazkia](./doc/screenshots/Screenshot.png)
## :red_circle: Ezaugarri zalantzagarriak
- **Jatorrizko garapena utzita**: Software honek ez du arduradunik. Denborak aurrera egin ahala funtzionatzeari utziko dio, konpondu gabeko segurtasun arazoak izango ditu, etab.
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <https://commento.io/>
- Administratzaileen dokumentazio ofiziala: <https://docs.commento.io/>
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/souramoo/commentoplusplus>
- YunoHost Denda: <https://apps.yunohost.org/app/commento>
- Eman errore baten berri: <https://github.com/YunoHost-Apps/commento_ynh/issues>
## Garatzaileentzako informazioa
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/commento_ynh/tree/testing).
`testing` abarra probatzeko, ondorengoa egin:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
edo
sudo yunohost app upgrade commento -u https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
```
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>

View file

@ -1,6 +1,6 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/readme_generator
It shall NOT be edited by hand.
Nota bene: ce README est automatiquement généré par <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
Il NE doit PAS être modifié à la main.
-->
# Commento pour YunoHost
@ -9,54 +9,56 @@ It shall NOT be edited by hand.
[![Installer Commento avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=commento)
*[Read this readme in english.](./README.md)*
*[Lire le README dans d'autres langues.](./ALL_README.md)*
> *Ce package vous permet dinstaller Commento rapidement et simplement sur un serveur YunoHost.
Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment linstaller et en profiter.*
> *Ce package vous permet dinstaller Commento rapidement et simplement sur un serveur YunoHost.*
> *Si vous navez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment linstaller et en profiter.*
## Vue densemble
Commento++ allows you to foster discussion on your website if you have a blog, you can embed Commento if you want your readers to add comments. It's fast and bloat-free, has a modern interface, and is reasonably secure. Unlike most alternatives, Commento is lightweight and privacy-focused.
Commento++ vous permet de favoriser la discussion sur votre site Web si vous avez un blog, vous pouvez intégrer Commento si vous souhaitez que vos lecteurs ajoutent des commentaires. Il possède une interface moderne et sécurisé. Contrairement à la plupart des alternatives, Commento est léger et axé sur la confidentialité.
### Features
### Caractéristiques
- Markdown support
- Import from Disqus
- Voting
- Automated spam detection (Askimet integration)
- Moderation tools
- Sticky comments
- Thread locking
- Hot-reloading of comments
- Email notifications.
- Prise en charge des démarques
- Importer depuis Disqus
- Vote
- Détection automatisée du spam (intégration Askimet)
- Outils de modération
- Commentaires
- Rechargement à chaud des commentaires
- Notifications par e-mail.
**Version incluse:** 1.8.7~ynh3
**Version incluse :** 1.8.7~ynh2
**Démo :** https://demo.souradip.com/chat.html
**Démo:** <https://demo.souradip.com/chat.html>
## Captures décran
![Capture décran de Commento](./doc/screenshots/Screenshot.png)
## :red_circle: Anti-fonctionnalités
- **Application non maintenue **: Ce logiciel n'est plus maintenu. Attendez-vous à ce qu'il ne fonctionne plus avec le temps, et que l'on découvre des failles de sécurité qui ne seront pas corrigées, etc.
## Documentations et ressources
* Site officiel de lapp : <https://commento.io/>
* Documentation officielle de ladmin : <https://docs.commento.io/>
* Dépôt de code officiel de lapp : <https://github.com/souramoo/commentoplusplus>
* YunoHost Store: <https://apps.yunohost.org/app/commento>
* Signaler un bug : <https://github.com/YunoHost-Apps/commento_ynh/issues>
- Site officiel de lapp: <https://commento.io/>
- Documentation officielle de ladmin: <https://docs.commento.io/>
- Dépôt de code officiel de lapp: <https://github.com/souramoo/commentoplusplus>
- YunoHost Store: <https://apps.yunohost.org/app/commento>
- Signaler un bug: <https://github.com/YunoHost-Apps/commento_ynh/issues>
## Informations pour les développeurs
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/commento_ynh/tree/testing).
Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/commento_ynh/tree/testing).
Pour essayer la branche testing, procédez comme suit.
Pour essayer la branche `testing`, procédez comme suit:
``` bash
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
ou
sudo yunohost app upgrade commento -u https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
```
**Plus dinfos sur le packaging dapplications :** <https://yunohost.org/packaging_apps>
**Plus dinfos sur le packaging dapplications:** <https://yunohost.org/packaging_apps>

66
README_gl.md Normal file
View file

@ -0,0 +1,66 @@
<!--
NOTA: Este README foi creado automáticamente por <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
NON debe editarse manualmente.
-->
# Commento para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/commento.svg)](https://dash.yunohost.org/appci/app/commento) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/commento.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/commento.maintain.svg)
[![Instalar Commento con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=commento)
*[Le este README en outros idiomas.](./ALL_README.md)*
> *Este paquete permíteche instalar Commento de xeito rápido e doado nun servidor YunoHost.*
> *Se non usas YunoHost, le a [documentación](https://yunohost.org/install) para saber como instalalo.*
## Vista xeral
Commento++ allows you to foster discussion on your website if you have a blog, you can embed Commento if you want your readers to add comments. It's fast and bloat-free, has a modern interface, and is reasonably secure. Unlike most alternatives, Commento is lightweight and privacy-focused.
### Features
- Markdown support
- Import from Disqus
- Voting
- Automated spam detection (Askimet integration)
- Moderation tools
- Sticky comments
- Thread locking
- Hot-reloading of comments
- Email notifications.
**Versión proporcionada:** 1.8.7~ynh3
**Demo:** <https://demo.souradip.com/chat.html>
## Capturas de pantalla
![Captura de pantalla de Commento](./doc/screenshots/Screenshot.png)
## :red_circle: Debes considerar
- **Upstream not maintained**: This software is not maintained anymore. Expect it to break down over time, be exposed to unfixed security breaches, etc.
## Documentación e recursos
- Web oficial da app: <https://commento.io/>
- Documentación oficial para admin: <https://docs.commento.io/>
- Repositorio de orixe do código: <https://github.com/souramoo/commentoplusplus>
- Tenda YunoHost: <https://apps.yunohost.org/app/commento>
- Informar dun problema: <https://github.com/YunoHost-Apps/commento_ynh/issues>
## Info de desenvolvemento
Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/commento_ynh/tree/testing).
Para probar a rama `testing`, procede deste xeito:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
ou
sudo yunohost app upgrade commento -u https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
```
**Máis info sobre o empaquetado da app:** <https://yunohost.org/packaging_apps>

66
README_zh_Hans.md Normal file
View file

@ -0,0 +1,66 @@
<!--
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
请勿手动编辑。
-->
# YunoHost 上的 Commento
[![集成程度](https://dash.yunohost.org/integration/commento.svg)](https://dash.yunohost.org/appci/app/commento) ![工作状态](https://ci-apps.yunohost.org/ci/badges/commento.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/commento.maintain.svg)
[![使用 YunoHost 安装 Commento](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=commento)
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Commento。*
> *如果您还没有 YunoHost请参阅[指南](https://yunohost.org/install)了解如何安装它。*
## 概况
Commento++ allows you to foster discussion on your website if you have a blog, you can embed Commento if you want your readers to add comments. It's fast and bloat-free, has a modern interface, and is reasonably secure. Unlike most alternatives, Commento is lightweight and privacy-focused.
### Features
- Markdown support
- Import from Disqus
- Voting
- Automated spam detection (Askimet integration)
- Moderation tools
- Sticky comments
- Thread locking
- Hot-reloading of comments
- Email notifications.
**分发版本:** 1.8.7~ynh3
**演示:** <https://demo.souradip.com/chat.html>
## 截图
![Commento 的截图](./doc/screenshots/Screenshot.png)
## :red_circle: 负面特征
- **Upstream not maintained**: This software is not maintained anymore. Expect it to break down over time, be exposed to unfixed security breaches, etc.
## 文档与资源
- 官方应用网站: <https://commento.io/>
- 官方管理文档: <https://docs.commento.io/>
- 上游应用代码库: <https://github.com/souramoo/commentoplusplus>
- YunoHost 商店: <https://apps.yunohost.org/app/commento>
- 报告 bug <https://github.com/YunoHost-Apps/commento_ynh/issues>
## 开发者信息
请向 [`testing` 分支](https://github.com/YunoHost-Apps/commento_ynh/tree/testing) 发送拉取请求。
如要尝试 `testing` 分支,请这样操作:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
sudo yunohost app upgrade commento -u https://github.com/YunoHost-Apps/commento_ynh/tree/testing --debug
```
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>

12
doc/DESCRIPTION_fr.md Normal file
View file

@ -0,0 +1,12 @@
Commento++ vous permet de favoriser la discussion sur votre site Web si vous avez un blog, vous pouvez intégrer Commento si vous souhaitez que vos lecteurs ajoutent des commentaires. Il possède une interface moderne et sécurisé. Contrairement à la plupart des alternatives, Commento est léger et axé sur la confidentialité.
### Caractéristiques
- Prise en charge des démarques
- Importer depuis Disqus
- Vote
- Détection automatisée du spam (intégration Askimet)
- Outils de modération
- Commentaires
- Rechargement à chaud des commentaires
- Notifications par e-mail.

View file

@ -5,9 +5,9 @@ name = "Commento"
description.en = "Fast, privacy-focused commenting platform"
description.fr = "Plateforme de commentaires rapide axée sur la confidentialité"
version = "1.8.7~ynh2"
version = "1.8.7~ynh3"
maintainers = ["eric_G"]
maintainers = []
[upstream]
license = "MIT"
@ -20,8 +20,11 @@ code = "https://github.com/souramoo/commentoplusplus"
yunohost = ">= 11.2"
architectures = ["amd64"]
multi_instance = true
ldap = false
sso = false
disk = "50M"
ram.build = "150M"
ram.runtime = "50M"

View file

@ -22,15 +22,11 @@ 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 SYSTEMD
#=================================================
ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================

View file

@ -31,7 +31,7 @@ ynh_change_url_nginx_config
ynh_script_progression --message="Adding a configuration file..." --weight=1
domain="$new_domain"
ynh_add_config --template="../conf/.env" --destination="$install_dir/commento.env"
ynh_add_config --template=".env" --destination="$install_dir/commento.env"
chmod 400 "$install_dir/commento.env"
chown $app:$app "$install_dir/commento.env"

View file

@ -45,7 +45,7 @@ yunohost service add $app --description="Privacy-focused commenting platform" --
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/.env" --destination="$install_dir/commento.env"
ynh_add_config --template=".env" --destination="$install_dir/commento.env"
chmod 400 "$install_dir/commento.env"
chown $app:$app "$install_dir/commento.env"

View file

@ -9,12 +9,6 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
@ -37,14 +31,10 @@ fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Upgrading source files..." --weight=1
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" #--keep="commento.env"
fi
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" #--keep="commento.env"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
@ -67,7 +57,7 @@ yunohost service add $app --description="Privacy-focused commenting platform" --
#=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="../conf/.env" --destination="$install_dir/commento.env"
ynh_add_config --template=".env" --destination="$install_dir/commento.env"
chmod 400 "$install_dir/commento.env"
chown $app:$app "$install_dir/commento.env"