1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/opensearch_ynh.git synced 2024-09-03 19:46:35 +02:00

Merge pull request #15 from YunoHost-Apps/testing

fix linter
This commit is contained in:
eric_G 2024-08-04 08:30:55 +02:00 committed by GitHub
commit aefa0ccd84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 71 additions and 32 deletions

View file

@ -5,4 +5,5 @@
- [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md)
- [Baca README dalam bahasa bahasa Indonesia](README_id.md)
- [阅读中文(简体)的 README](README_zh_Hans.md)

View file

@ -5,7 +5,7 @@ It shall NOT be edited by hand.
# OpenSearch for YunoHost
[![Integration level](https://dash.yunohost.org/integration/opensearch.svg)](https://dash.yunohost.org/appci/app/opensearch) ![Working status](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Integration level](https://dash.yunohost.org/integration/opensearch.svg)](https://ci-apps.yunohost.org/ci/apps/opensearch/) ![Working status](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Install OpenSearch with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensearch)
@ -29,7 +29,7 @@ OpenSearch is a scalable, flexible, and extensible open-source software suite fo
- Not scalable for now
**Shipped version:** 2.9.0~ynh2
**Shipped version:** 2.9.0~ynh3
**Demo:** <https://playground.opensearch.org/app/home>
## Documentation and resources

View file

@ -5,7 +5,7 @@ No se debe editar a mano.
# OpenSearch para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/opensearch.svg)](https://dash.yunohost.org/appci/app/opensearch) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Nivel de integración](https://dash.yunohost.org/integration/opensearch.svg)](https://ci-apps.yunohost.org/ci/apps/opensearch/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Instalar OpenSearch con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensearch)
@ -29,7 +29,7 @@ OpenSearch is a scalable, flexible, and extensible open-source software suite fo
- Not scalable for now
**Versión actual:** 2.9.0~ynh2
**Versión actual:** 2.9.0~ynh3
**Demo:** <https://playground.opensearch.org/app/home>
## Documentaciones y recursos

View file

@ -5,7 +5,7 @@ EZ editatu eskuz.
# OpenSearch YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/opensearch.svg)](https://dash.yunohost.org/appci/app/opensearch) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Integrazio maila](https://dash.yunohost.org/integration/opensearch.svg)](https://ci-apps.yunohost.org/ci/apps/opensearch/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Instalatu OpenSearch YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensearch)
@ -29,7 +29,7 @@ OpenSearch is a scalable, flexible, and extensible open-source software suite fo
- Not scalable for now
**Paketatutako bertsioa:** 2.9.0~ynh2
**Paketatutako bertsioa:** 2.9.0~ynh3
**Demoa:** <https://playground.opensearch.org/app/home>
## Dokumentazioa eta baliabideak

View file

@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
# OpenSearch pour YunoHost
[![Niveau dintégration](https://dash.yunohost.org/integration/opensearch.svg)](https://dash.yunohost.org/appci/app/opensearch) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Niveau dintégration](https://dash.yunohost.org/integration/opensearch.svg)](https://ci-apps.yunohost.org/ci/apps/opensearch/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Installer OpenSearch avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensearch)
@ -29,7 +29,7 @@ OpenSearch is a scalable, flexible, and extensible open-source software suite fo
- Not scalable for now
**Version incluse:** 2.9.0~ynh2
**Version incluse:** 2.9.0~ynh3
**Démo:** <https://playground.opensearch.org/app/home>
## Documentations et ressources

View file

@ -5,7 +5,7 @@ NON debe editarse manualmente.
# OpenSearch para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/opensearch.svg)](https://dash.yunohost.org/appci/app/opensearch) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Nivel de integración](https://dash.yunohost.org/integration/opensearch.svg)](https://ci-apps.yunohost.org/ci/apps/opensearch/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Instalar OpenSearch con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensearch)
@ -29,7 +29,7 @@ OpenSearch is a scalable, flexible, and extensible open-source software suite fo
- Not scalable for now
**Versión proporcionada:** 2.9.0~ynh2
**Versión proporcionada:** 2.9.0~ynh3
**Demo:** <https://playground.opensearch.org/app/home>
## Documentación e recursos

55
README_id.md Normal file
View file

@ -0,0 +1,55 @@
<!--
N.B.: README ini dibuat secara otomatis oleh <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
Ini TIDAK boleh diedit dengan tangan.
-->
# OpenSearch untuk YunoHost
[![Tingkat integrasi](https://dash.yunohost.org/integration/opensearch.svg)](https://ci-apps.yunohost.org/ci/apps/opensearch/) ![Status kerja](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![Status pemeliharaan](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![Pasang OpenSearch dengan YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensearch)
*[Baca README ini dengan bahasa yang lain.](./ALL_README.md)*
> *Paket ini memperbolehkan Anda untuk memasang OpenSearch secara cepat dan mudah pada server YunoHost.*
> *Bila Anda tidak mempunyai YunoHost, silakan berkonsultasi dengan [panduan](https://yunohost.org/install) untuk mempelajari bagaimana untuk memasangnya.*
## Ringkasan
OpenSearch makes it easy to ingest, search, visualize, and analyze your data.
### Features
OpenSearch is a scalable, flexible, and extensible open-source software suite for search, analytics, and observability applications licensed under Apache 2.0. Powered by Apache Lucene and driven by the OpenSearch Project community, OpenSearch offers a vendor-agnostic toolset you can use to build secure, high-performance, cost-efficient applications. Use OpenSearch as an end-to-end solution or connect it with your preferred open-source tools or partner projects.
### Limitations
- Currently the security is disabled
- Therefore, the package is configured to remain not public for now (i.e. not accessible through the web, the apps depending on it should be installed on the same server)
- Not scalable for now
**Versi terkirim:** 2.9.0~ynh3
**Demo:** <https://playground.opensearch.org/app/home>
## Dokumentasi dan sumber daya
- Website aplikasi resmi: <https://opensearch.org>
- Dokumentasi admin resmi: <https://opensearch.org/docs/latest/>
- Depot kode aplikasi hulu: <https://github.com/opensearch-project/OpenSearch>
- Gudang YunoHost: <https://apps.yunohost.org/app/opensearch>
- Laporkan bug: <https://github.com/YunoHost-Apps/opensearch_ynh/issues>
## Info developer
Silakan kirim pull request ke [`testing` branch](https://github.com/YunoHost-Apps/opensearch_ynh/tree/testing).
Untuk mencoba branch `testing`, silakan dilanjutkan seperti:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/opensearch_ynh/tree/testing --debug
atau
sudo yunohost app upgrade opensearch -u https://github.com/YunoHost-Apps/opensearch_ynh/tree/testing --debug
```
**Info lebih lanjut mengenai pemaketan aplikasi:** <https://yunohost.org/packaging_apps>

View file

@ -5,7 +5,7 @@
# YunoHost 上的 OpenSearch
[![集成程度](https://dash.yunohost.org/integration/opensearch.svg)](https://dash.yunohost.org/appci/app/opensearch) ![工作状态](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![集成程度](https://dash.yunohost.org/integration/opensearch.svg)](https://ci-apps.yunohost.org/ci/apps/opensearch/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/opensearch.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/opensearch.maintain.svg)
[![使用 YunoHost 安装 OpenSearch](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensearch)
@ -29,7 +29,7 @@ OpenSearch is a scalable, flexible, and extensible open-source software suite fo
- Not scalable for now
**分发版本:** 2.9.0~ynh2
**分发版本:** 2.9.0~ynh3
**演示:** <https://playground.opensearch.org/app/home>
## 文档与资源

View file

@ -7,7 +7,7 @@ name = "OpenSearch"
description.en = "Open source distributed and RESTful search engine"
description.fr = "Moteur de recherche RESTful et open-source"
version = "2.9.0~ynh2"
version = "2.9.0~ynh3"
maintainers = ["fflorent"]
@ -20,7 +20,7 @@ code = "https://github.com/opensearch-project/OpenSearch"
cpe = "cpe:2.3:a:amazon:opensearch"
[integration]
yunohost = ">= 11.0.0"
yunohost = ">= 11.2.20"
architectures = ["amd64", "arm64"]
multi_instance = true
ldap = "not_relevant"
@ -38,8 +38,6 @@ ram.runtime = "600M"
arm64.url = "https://artifacts.opensearch.org/releases/bundle/opensearch/2.9.0/opensearch-2.9.0-linux-arm64.tar.gz"
arm64.sha256 = "ba6045e58d433f64f09d92565e308553647bfd3f1193346a1716f7f66e4aad5a"
# FIXME: autoupdate
[resources.system_user]
[resources.install_dir]

View file

@ -26,25 +26,15 @@ ynh_backup --src_path="$install_dir"
ynh_backup --src_path="$data_dir" --is_big
#=================================================
# SPECIFIC BACKUP
#=================================================
# BACKUP LOGROTATE
# SYSTEM CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/logrotate.d/$app"
#=================================================
# BACKUP VARIOUS FILES
#=================================================
if [ "${container:-}" != "lxc" ]; then # lxc doesn't allow sysctl to play with kernel options.
ynh_backup --src_path="/etc/sysctl.d/90-max_map_count-opensearch.conf"
fi
#=================================================
# BACKUP SYSTEMD
#=================================================
ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================

View file

@ -14,11 +14,6 @@ ynh_script_progression --message="Stopping $app's systemd service..." --weight=1
ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$app/$app.log"
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
# ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================