1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/elasticsearch8_ynh.git synced 2024-09-03 18:26:26 +02:00
This commit is contained in:
eric_G 2024-06-23 17:22:05 +00:00 committed by GitHub
commit 39d83b1acd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 14 additions and 42 deletions

View file

@ -20,7 +20,7 @@ Elasticsearch is the distributed, RESTful search and analytics engine at the hea
To learn more about Elasticsearchs features and capabilities, see the [product page](https://www.elastic.co/products/elasticsearch). To learn more about Elasticsearchs features and capabilities, see the [product page](https://www.elastic.co/products/elasticsearch).
**Shipped version:** 8.11.1~ynh3 **Shipped version:** 8.14.1~ynh1
**Demo:** <https://www.elastic.co/demos> **Demo:** <https://www.elastic.co/demos>
## :red_circle: Antifeatures ## :red_circle: Antifeatures

View file

@ -20,7 +20,7 @@ Elasticsearch is the distributed, RESTful search and analytics engine at the hea
To learn more about Elasticsearchs features and capabilities, see the [product page](https://www.elastic.co/products/elasticsearch). To learn more about Elasticsearchs features and capabilities, see the [product page](https://www.elastic.co/products/elasticsearch).
**Versión actual:** 8.11.1~ynh3 **Versión actual:** 8.14.1~ynh1
**Demo:** <https://www.elastic.co/demos> **Demo:** <https://www.elastic.co/demos>
## :red_circle: Características no deseables ## :red_circle: Características no deseables

View file

@ -20,7 +20,7 @@ Elasticsearch is the distributed, RESTful search and analytics engine at the hea
To learn more about Elasticsearchs features and capabilities, see the [product page](https://www.elastic.co/products/elasticsearch). To learn more about Elasticsearchs features and capabilities, see the [product page](https://www.elastic.co/products/elasticsearch).
**Paketatutako bertsioa:** 8.11.1~ynh3 **Paketatutako bertsioa:** 8.14.1~ynh1
**Demoa:** <https://www.elastic.co/demos> **Demoa:** <https://www.elastic.co/demos>
## :red_circle: Ezaugarri zalantzagarriak ## :red_circle: Ezaugarri zalantzagarriak

View file

@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main.
Elasticsearch est le moteur de recherche et d'analyse distribué et RESTful au cœur de la [Elastic Stack](https://www.elastic.co/products). Vous pouvez utiliser Elasticsearch pour stocker, rechercher et gérer des données pour les journaux, les métriques, le backend de recherche, la surveillance des applications et la sécurité des points de terminaison. Elasticsearch est le moteur de recherche et d'analyse distribué et RESTful au cœur de la [Elastic Stack](https://www.elastic.co/products). Vous pouvez utiliser Elasticsearch pour stocker, rechercher et gérer des données pour les journaux, les métriques, le backend de recherche, la surveillance des applications et la sécurité des points de terminaison.
Pour en savoir plus sur les fonctionnalités et capacités d'Elasticsearch, consultez la [page produit](https://www.elastic.co/products/elasticsearch). Pour en savoir plus sur les fonctionnalités et capacités d'Elasticsearch, consultez la [page produit](https://www.elastic.co/products/elasticsearch).
**Version incluse:** 8.11.1~ynh3 **Version incluse:** 8.14.1~ynh1
**Démo:** <https://www.elastic.co/demos> **Démo:** <https://www.elastic.co/demos>
## :red_circle: Anti-fonctionnalités ## :red_circle: Anti-fonctionnalités

View file

@ -20,7 +20,7 @@ Elasticsearch is the distributed, RESTful search and analytics engine at the hea
To learn more about Elasticsearchs features and capabilities, see the [product page](https://www.elastic.co/products/elasticsearch). To learn more about Elasticsearchs features and capabilities, see the [product page](https://www.elastic.co/products/elasticsearch).
**Versión proporcionada:** 8.11.1~ynh3 **Versión proporcionada:** 8.14.1~ynh1
**Demo:** <https://www.elastic.co/demos> **Demo:** <https://www.elastic.co/demos>
## :red_circle: Debes considerar ## :red_circle: Debes considerar

View file

@ -20,7 +20,7 @@ Elasticsearch is the distributed, RESTful search and analytics engine at the hea
To learn more about Elasticsearchs features and capabilities, see the [product page](https://www.elastic.co/products/elasticsearch). To learn more about Elasticsearchs features and capabilities, see the [product page](https://www.elastic.co/products/elasticsearch).
**分发版本:** 8.11.1~ynh3 **分发版本:** 8.14.1~ynh1
**演示:** <https://www.elastic.co/demos> **演示:** <https://www.elastic.co/demos>
## :red_circle: 负面特征 ## :red_circle: 负面特征

View file

@ -5,7 +5,7 @@ name = "ElasticSearch 8"
description.en = "Distributed and RESTful search engine" description.en = "Distributed and RESTful search engine"
description.fr = "Moteur de recherche RESTful" description.fr = "Moteur de recherche RESTful"
version = "8.11.1~ynh3" version = "8.14.1~ynh1"
maintainers = ["fflorent"] maintainers = ["fflorent"]
@ -33,10 +33,10 @@ ram.runtime = "50M"
[resources] [resources]
[resources.sources.main] [resources.sources.main]
arm64.url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.11.1-linux-aarch64.tar.gz" arm64.url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.14.1-linux-aarch64.tar.gz"
arm64.sha256 = "1728d26f398b58156411f80b871a2d5a0825ae446a8bec70a01a952fe7c707cb" arm64.sha256 = "22a969b10c8d5ed21a258a85e64c9910e5d4931a70afccf8c4a85942b2a05900"
amd64.url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.11.1-linux-x86_64.tar.gz" amd64.url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.14.1-linux-x86_64.tar.gz"
amd64.sha256 = "dd8572e4f50ffbe4079cce315b17c25e3cebaa02fd7eb134d2aa222703459780" amd64.sha256 = "914226dea149dd5d056367be54bb28315325343776b7f04df47c5ced73f39faa"
[resources.system_user] [resources.system_user]

View file

@ -28,23 +28,13 @@ ynh_backup --src_path="$install_dir"
ynh_backup --src_path="$data_dir" --is_big ynh_backup --src_path="$data_dir" --is_big
#================================================= #=================================================
# SPECIFIC BACKUP # SYSTEM CONFIGURATION
#=================================================
# BACKUP LOGROTATE
#================================================= #=================================================
ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/etc/logrotate.d/$app"
#=================================================
# BACKUP VARIOUS FILES
#=================================================
ynh_backup --src_path="/etc/sysctl.d/90-max_map_count-elasticsearch.conf" ynh_backup --src_path="/etc/sysctl.d/90-max_map_count-elasticsearch.conf"
#=================================================
# BACKUP SYSTEMD
#=================================================
ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_backup --src_path="/etc/systemd/system/$app.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)
#================================================= #=================================================
# STANDARD UPGRADE STEPS # STANDARD UPGRADE STEPS
#================================================= #=================================================
@ -24,24 +18,12 @@ ynh_script_progression --message="Stopping a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" 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 # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=20 ynh_script_progression --message="Upgrading source files..." --weight=20
# Download, check integrity, uncompress and patch the source from app.src
# The keep option prevents this warning:
# "File .... has been manually modified since the installation or last upgrade."
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="config/elasticsearch.yml" ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="config/elasticsearch.yml"
fi
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:$app "$install_dir" chown -R $app:$app "$install_dir"