From bbfacd61cc5d066ddd50d9ac10606124f1bc66cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:30:23 +0200 Subject: [PATCH 1/3] cleaning --- manifest.toml | 2 +- scripts/backup | 4 ---- scripts/install | 20 ++++++-------------- scripts/upgrade | 1 - 4 files changed, 7 insertions(+), 20 deletions(-) diff --git a/manifest.toml b/manifest.toml index 1cdc700..bbfe54f 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ description.fr = "Client Web IRC" version = "4.4.3~ynh2" -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" From 7b028a52cf429f89fa38fb1f9c24c626ede2c1b4 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 17 Jun 2024 20:30:28 +0000 Subject: [PATCH 2/3] Auto-update READMEs --- ALL_README.md | 2 ++ README_es.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++ README_zh_Hans.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 README_es.md create mode 100644 README_zh_Hans.md 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_es.md b/README_es.md new file mode 100644 index 0000000..0eafb5a --- /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~ynh2 + +**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_zh_Hans.md b/README_zh_Hans.md new file mode 100644 index 0000000..a069f5c --- /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~ynh2 + +**演示:** + +## 截图 + +![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 +``` + +**有关应用打包的更多信息:** From fe6549a3e631599ef4470e50a7290c8314e4636e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:31:35 +0200 Subject: [PATCH 3/3] Update systemd.service --- conf/systemd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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