diff --git a/ALL_README.md b/ALL_README.md index 77b7509..152f2e7 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,6 +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) diff --git a/README.md b/README.md index 2890044..210c4e3 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Modern web IRC client designed for self-hosting. - Responsive interface - Multi-user support -**Shipped version:** 4.4.3~ynh2 +**Shipped version:** 4.4.3~ynh3 **Demo:** diff --git a/README_es.md b/README_es.md new file mode 100644 index 0000000..1e8116d --- /dev/null +++ b/README_es.md @@ -0,0 +1,55 @@ + + +# The Lounge para Yunohost + +[![Nivel de integración](https://dash.yunohost.org/integration/thelounge.svg)](https://dash.yunohost.org/appci/app/thelounge) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/thelounge.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/thelounge.maintain.svg) + +[![Instalar The Lounge con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=thelounge) + +*[Leer este README en otros idiomas.](./ALL_README.md)* + +> *Este paquete le permite instalarThe Lounge 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 + +Modern web IRC client designed for self-hosting. + +### Features: + +- Always connected +- Responsive interface +- Multi-user support + +**Versión actual:** 4.4.3~ynh3 + +**Demo:** + +## Capturas + +![Captura de The Lounge](./doc/screenshots/thelounge-screenshot.png) + +## Documentaciones y recursos + +- Sitio web oficial: +- Documentación administrador oficial: +- Repositorio del código fuente oficial de la aplicación : +- Catálogo YunoHost: +- Reportar un error: + +## Información para desarrolladores + +Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing + +Para probar la rama `testing`, sigue asÍ: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug +o +sudo yunohost app upgrade thelounge -u https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug +``` + +**Mas informaciones sobre el empaquetado de aplicaciones:** diff --git a/README_eu.md b/README_eu.md index ea18ff0..7cd6d96 100644 --- a/README_eu.md +++ b/README_eu.md @@ -24,7 +24,7 @@ Modern web IRC client designed for self-hosting. - Responsive interface - Multi-user support -**Paketatutako bertsioa:** 4.4.3~ynh2 +**Paketatutako bertsioa:** 4.4.3~ynh3 **Demoa:** diff --git a/README_fr.md b/README_fr.md index d8d375d..12eb1c2 100644 --- a/README_fr.md +++ b/README_fr.md @@ -24,7 +24,7 @@ Client Web IRC moderne conçu pour l'auto-hébergement. - Interface réactive - Support multi-utilisateurs -**Version incluse :** 4.4.3~ynh2 +**Version incluse :** 4.4.3~ynh3 **Démo :** diff --git a/README_gl.md b/README_gl.md index af32306..4d65261 100644 --- a/README_gl.md +++ b/README_gl.md @@ -24,7 +24,7 @@ Modern web IRC client designed for self-hosting. - Responsive interface - Multi-user support -**Versión proporcionada:** 4.4.3~ynh2 +**Versión proporcionada:** 4.4.3~ynh3 **Demo:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md new file mode 100644 index 0000000..b9e63fa --- /dev/null +++ b/README_zh_Hans.md @@ -0,0 +1,55 @@ + + +# YunoHost 上的 The Lounge + +[![集成程度](https://dash.yunohost.org/integration/thelounge.svg)](https://dash.yunohost.org/appci/app/thelounge) ![工作状态](https://ci-apps.yunohost.org/ci/badges/thelounge.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/thelounge.maintain.svg) + +[![使用 YunoHost 安装 The Lounge](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=thelounge) + +*[阅读此 README 的其它语言版本。](./ALL_README.md)* + +> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 The Lounge。* +> *如果您还没有 YunoHost,请参阅[指南](https://yunohost.org/install)了解如何安装它。* + +## 概况 + +Modern web IRC client designed for self-hosting. + +### Features: + +- Always connected +- Responsive interface +- Multi-user support + +**分发版本:** 4.4.3~ynh3 + +**演示:** + +## 截图 + +![The Lounge 的截图](./doc/screenshots/thelounge-screenshot.png) + +## 文档与资源 + +- 官方应用网站: +- 官方管理文档: +- 上游应用代码库: +- YunoHost 商店: +- 报告 bug: + +## 开发者信息 + +请向 [`testing` 分支](https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing) 发送拉取请求。 + +如要尝试 `testing` 分支,请这样操作: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug +或 +sudo yunohost app upgrade thelounge -u https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug +``` + +**有关应用打包的更多信息:** diff --git a/conf/systemd.service b/conf/systemd.service index 77c1105..4d7c12a 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ -Environment="PATH=__ENV_PATH__" +Environment="__YNH_NODE_LOAD_PATH__" Environment="THELOUNGE_HOME=__DATA_DIR__/" Environment="NODE_ENV=production" ExecStart=/usr/bin/yarn start diff --git a/manifest.toml b/manifest.toml index 1cdc700..a711cad 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,9 +5,9 @@ name = "The Lounge" description.en = "Web IRC client" description.fr = "Client Web IRC" -version = "4.4.3~ynh2" +version = "4.4.3~ynh3" -maintainers = ["rafi59"] +maintainers = [] [upstream] license = "MIT" diff --git a/scripts/backup b/scripts/backup index 8846907..f495cf1 100644 --- a/scripts/backup +++ b/scripts/backup @@ -32,10 +32,6 @@ ynh_backup --src_path="$data_dir" --is_big ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# BACKUP SYSTEMD -#================================================= - ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= diff --git a/scripts/install b/scripts/install index 7f1ef6c..cb849bb 100644 --- a/scripts/install +++ b/scripts/install @@ -28,14 +28,6 @@ ynh_setup_source --dest_dir=$install_dir chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Configuring NGINX web server..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - #================================================= # SPECIFIC SETUP #================================================= @@ -45,6 +37,9 @@ ynh_script_progression --message="Modifying a config file..." --weight=1 ynh_add_config --template="config.js" --destination="$data_dir/config.js" +chmod 400 "$data_dir/config.js" +chown "$app:$app" "$data_dir/config.js" + #================================================= # INSTALL THE LOUNGE #================================================= @@ -61,13 +56,10 @@ popd #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -env_path="$PATH" -ynh_add_systemd_config +# Create a dedicated NGINX config +ynh_add_nginx_config -#================================================= -# INTEGRATE SERVICE IN YUNOHOST -#================================================= -ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 +ynh_add_systemd_config yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$app.log" diff --git a/scripts/upgrade b/scripts/upgrade index d625b24..0e550a8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -55,7 +55,6 @@ ynh_script_progression --message="Upgrading system configurations related to $ap ynh_add_nginx_config -env_path="$PATH" ynh_add_systemd_config yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$app.log"