1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00
* Auto-update READMEs

* cleaning

* Update manifest.toml

* Auto-update READMEs

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
eric_G 2024-06-18 10:01:08 +02:00 committed by GitHub
parent ef7e0744e9
commit 3fdf264415
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 172 additions and 43 deletions

View file

@ -1,6 +1,8 @@
# All available README files by language # All available README files by language
- [Read the README in English](README.md) - [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) - [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md) - [Le o README en galego](README_gl.md)
- [Leggi il “README” in italiano](README_it.md) - [阅读中文(简体)的 README](README_zh_Hans.md)

View file

@ -9,7 +9,7 @@ It shall NOT be edited by hand.
[![Install Haste with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=haste) [![Install Haste with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=haste)
*[Read this README is other languages.](./ALL_README.md)* *[Read this README in other languages.](./ALL_README.md)*
> *This package allows you to install Haste quickly and simply on a YunoHost server.* > *This package allows you to install Haste 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.* > *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
@ -31,7 +31,7 @@ Haste is an open-source pastebin software written in node.js, which is easily in
- Official app website: <http://hastebin.com/> - Official app website: <http://hastebin.com/>
- Official user documentation: <https://hastebin.com/about.md> - Official user documentation: <https://hastebin.com/about.md>
- Upstream app code repository: <https://github.com/seejohnrun/haste-server> - Upstream app code repository: <https://github.com/toptal/haste-server>
- YunoHost Store: <https://apps.yunohost.org/app/haste> - YunoHost Store: <https://apps.yunohost.org/app/haste>
- Report a bug: <https://github.com/YunoHost-Apps/haste_ynh/issues> - Report a bug: <https://github.com/YunoHost-Apps/haste_ynh/issues>

50
README_es.md Normal file
View file

@ -0,0 +1,50 @@
<!--
Este archivo README esta generado automaticamente<https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
No se debe editar a mano.
-->
# Haste para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/haste.svg)](https://dash.yunohost.org/appci/app/haste) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/haste.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/haste.maintain.svg)
[![Instalar Haste con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=haste)
*[Leer este README en otros idiomas.](./ALL_README.md)*
> *Este paquete le permite instalarHaste 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
Haste is an open-source pastebin software written in node.js, which is easily installable in any network. YunoHost Project uses Haste as pastebin for log sharing: [paste.yunohost.org](https://paste.yunohost.org/)
**Versión actual:** 0.1.2023.09.21~ynh2
**Demo:** <http://hastebin.com/>
## Capturas
![Captura de Haste](./doc/screenshots/screenshot.png)
## Documentaciones y recursos
- Sitio web oficial: <http://hastebin.com/>
- Documentación usuario oficial: <https://hastebin.com/about.md>
- Repositorio del código fuente oficial de la aplicación : <https://github.com/toptal/haste-server>
- Catálogo YunoHost: <https://apps.yunohost.org/app/haste>
- Reportar un error: <https://github.com/YunoHost-Apps/haste_ynh/issues>
## Información para desarrolladores
Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/haste_ynh/tree/testing
Para probar la rama `testing`, sigue asÍ:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/haste_ynh/tree/testing --debug
o
sudo yunohost app upgrade haste -u https://github.com/YunoHost-Apps/haste_ynh/tree/testing --debug
```
**Mas informaciones sobre el empaquetado de aplicaciones:** <https://yunohost.org/packaging_apps>

50
README_eu.md Normal file
View file

@ -0,0 +1,50 @@
<!--
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
EZ editatu eskuz.
-->
# Haste YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/haste.svg)](https://dash.yunohost.org/appci/app/haste) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/haste.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/haste.maintain.svg)
[![Instalatu Haste YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=haste)
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
> *Pakete honek Haste YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
## Aurreikuspena
Haste is an open-source pastebin software written in node.js, which is easily installable in any network. YunoHost Project uses Haste as pastebin for log sharing: [paste.yunohost.org](https://paste.yunohost.org/)
**Paketatutako bertsioa:** 0.1.2023.09.21~ynh2
**Demoa:** <http://hastebin.com/>
## Pantaila-argazkiak
![Haste(r)en pantaila-argazkia](./doc/screenshots/screenshot.png)
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <http://hastebin.com/>
- Erabiltzaileen dokumentazio ofiziala: <https://hastebin.com/about.md>
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/toptal/haste-server>
- YunoHost Denda: <https://apps.yunohost.org/app/haste>
- Eman errore baten berri: <https://github.com/YunoHost-Apps/haste_ynh/issues>
## Garatzaileentzako informazioa
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/haste_ynh/tree/testing).
`testing` abarra probatzeko, ondorengoa egin:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/haste_ynh/tree/testing --debug
edo
sudo yunohost app upgrade haste -u https://github.com/YunoHost-Apps/haste_ynh/tree/testing --debug
```
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>

View file

@ -31,7 +31,7 @@ Haste est un logiciel pastebin open-source écrit en node.js, facilement install
- Site officiel de lapp: <http://hastebin.com/> - Site officiel de lapp: <http://hastebin.com/>
- Documentation officielle utilisateur: <https://hastebin.com/about.md> - Documentation officielle utilisateur: <https://hastebin.com/about.md>
- Dépôt de code officiel de lapp: <https://github.com/seejohnrun/haste-server> - Dépôt de code officiel de lapp: <https://github.com/toptal/haste-server>
- YunoHost Store: <https://apps.yunohost.org/app/haste> - YunoHost Store: <https://apps.yunohost.org/app/haste>
- Signaler un bug: <https://github.com/YunoHost-Apps/haste_ynh/issues> - Signaler un bug: <https://github.com/YunoHost-Apps/haste_ynh/issues>

View file

@ -31,7 +31,7 @@ Haste is an open-source pastebin software written in node.js, which is easily in
- Web oficial da app: <http://hastebin.com/> - Web oficial da app: <http://hastebin.com/>
- Documentación oficial para usuarias: <https://hastebin.com/about.md> - Documentación oficial para usuarias: <https://hastebin.com/about.md>
- Repositorio de orixe do código: <https://github.com/seejohnrun/haste-server> - Repositorio de orixe do código: <https://github.com/toptal/haste-server>
- Tenda YunoHost: <https://apps.yunohost.org/app/haste> - Tenda YunoHost: <https://apps.yunohost.org/app/haste>
- Informar dun problema: <https://github.com/YunoHost-Apps/haste_ynh/issues> - Informar dun problema: <https://github.com/YunoHost-Apps/haste_ynh/issues>

50
README_zh_Hans.md Normal file
View file

@ -0,0 +1,50 @@
<!--
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
请勿手动编辑。
-->
# YunoHost 上的 Haste
[![集成程度](https://dash.yunohost.org/integration/haste.svg)](https://dash.yunohost.org/appci/app/haste) ![工作状态](https://ci-apps.yunohost.org/ci/badges/haste.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/haste.maintain.svg)
[![使用 YunoHost 安装 Haste](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=haste)
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Haste。*
> *如果您还没有 YunoHost请参阅[指南](https://yunohost.org/install)了解如何安装它。*
## 概况
Haste is an open-source pastebin software written in node.js, which is easily installable in any network. YunoHost Project uses Haste as pastebin for log sharing: [paste.yunohost.org](https://paste.yunohost.org/)
**分发版本:** 0.1.2023.09.21~ynh2
**演示:** <http://hastebin.com/>
## 截图
![Haste 的截图](./doc/screenshots/screenshot.png)
## 文档与资源
- 官方应用网站: <http://hastebin.com/>
- 官方用户文档: <https://hastebin.com/about.md>
- 上游应用代码库: <https://github.com/toptal/haste-server>
- YunoHost 商店: <https://apps.yunohost.org/app/haste>
- 报告 bug <https://github.com/YunoHost-Apps/haste_ynh/issues>
## 开发者信息
请向 [`testing` 分支](https://github.com/YunoHost-Apps/haste_ynh/tree/testing) 发送拉取请求。
如要尝试 `testing` 分支,请这样操作:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/haste_ynh/tree/testing --debug
sudo yunohost app upgrade haste -u https://github.com/YunoHost-Apps/haste_ynh/tree/testing --debug
```
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>

View file

@ -14,7 +14,7 @@ license = "MIT"
website = "http://hastebin.com/" website = "http://hastebin.com/"
demo = "http://hastebin.com/" demo = "http://hastebin.com/"
userdoc = "https://hastebin.com/about.md" userdoc = "https://hastebin.com/about.md"
code = "https://github.com/seejohnrun/haste-server" code = "https://github.com/toptal/haste-server"
[integration] [integration]
yunohost = ">= 11.2" yunohost = ">= 11.2"
@ -41,8 +41,8 @@ ram.runtime = "50M"
[resources] [resources]
[resources.sources.main] [resources.sources.main]
url = "https://github.com/seejohnrun/haste-server/archive/ded18b0c2e1ad05eaba6ab5bb938ae6b54cb5147.tar.gz" url = "https://github.com/toptal/haste-server/archive/87a6a88449db1e1e048bf58223038b8df83846c8.tar.gz"
sha256 = "2f4ac83e9fe2f78b4b48d3999cfbc879ed29fd15d5c1d21c316ef66ddfde89f1" sha256 = "729cdff777daa04ccc277670a94e2e8e5d7bf4cd1bf63730d3436bca5d05dd6d"
autoupdate.strategy = "latest_github_commit" autoupdate.strategy = "latest_github_commit"
autoupdate.force_version = "0.1.%Y.%m.%d" autoupdate.force_version = "0.1.%Y.%m.%d"

View file

@ -21,18 +21,6 @@ ynh_print_info --message="Declaring files to be backed up..."
ynh_backup --src_path="$install_dir" ynh_backup --src_path="$install_dir"
#=================================================
# BACKUP THE NGINX CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# BACKUP LOGROTATE
#=================================================
ynh_backup --src_path="/etc/logrotate.d/$app"
#================================================= #=================================================
# BACKUP DATA_DIR DIRECTORY # BACKUP DATA_DIR DIRECTORY
#================================================= #=================================================
@ -40,15 +28,15 @@ ynh_backup --src_path="/etc/logrotate.d/$app"
ynh_backup --src_path="$data_dir" --is_big ynh_backup --src_path="$data_dir" --is_big
#================================================= #=================================================
# BACKUP BINARY # SYSTEM CONFIGURATION
#================================================= #=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/logrotate.d/$app"
ynh_backup --src_path="/usr/bin/$app" ynh_backup --src_path="/usr/bin/$app"
#=================================================
# BACKUP SYSTEMD
#=================================================
ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_backup --src_path="/etc/systemd/system/$app.service"
#================================================= #=================================================

View file

@ -10,10 +10,9 @@ source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#================================================= #=================================================
# STANDARD REMOVE # REMOVE SYSTEM CONFIGURATIONS
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#================================================= #=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) # Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null if ynh_exec_warn_less yunohost service status $app >/dev/null

View file

@ -58,12 +58,12 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
yunohost service add $app --description="Haste is a pastebin software" --log="/var/log/$app/$app.log" ynh_restore_file --origin_path="/etc/logrotate.d/$app"
ynh_restore_file --origin_path="/etc/systemd/system/$app.service" ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet systemctl enable $app.service --quiet
ynh_restore_file --origin_path="/etc/logrotate.d/$app" yunohost service add $app --description="Haste is a pastebin software" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE

View file

@ -9,12 +9,6 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
# STOP SYSTEMD SERVICE # STOP SYSTEMD SERVICE
#================================================= #=================================================
@ -25,14 +19,10 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
ynh_script_progression --message="Upgrading source files..." --weight=7
if [ "$upgrade_type" == "UPGRADE_APP" ] # Download, check integrity, uncompress and patch the source from app.src
then ynh_setup_source --dest_dir="$install_dir" --keep="config.js"
ynh_script_progression --message="Upgrading source files..." --weight=7
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="config.js"
fi
#================================================= #=================================================
# UPGRADE NODEJS # UPGRADE NODEJS