mirror of
https://github.com/YunoHost-Apps/elasticsearch8_ynh.git
synced 2024-09-03 18:26:26 +02:00
Merge 8d8bb1f27a
into fca438c184
This commit is contained in:
commit
39d83b1acd
9 changed files with 14 additions and 42 deletions
|
@ -20,7 +20,7 @@ Elasticsearch is the distributed, RESTful search and analytics engine at the hea
|
|||
To learn more about Elasticsearch’s 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>
|
||||
## :red_circle: Antifeatures
|
||||
|
|
|
@ -20,7 +20,7 @@ Elasticsearch is the distributed, RESTful search and analytics engine at the hea
|
|||
To learn more about Elasticsearch’s 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>
|
||||
## :red_circle: Características no deseables
|
||||
|
|
|
@ -20,7 +20,7 @@ Elasticsearch is the distributed, RESTful search and analytics engine at the hea
|
|||
To learn more about Elasticsearch’s 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>
|
||||
## :red_circle: Ezaugarri zalantzagarriak
|
||||
|
|
|
@ -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.
|
||||
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>
|
||||
## :red_circle: Anti-fonctionnalités
|
||||
|
|
|
@ -20,7 +20,7 @@ Elasticsearch is the distributed, RESTful search and analytics engine at the hea
|
|||
To learn more about Elasticsearch’s 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>
|
||||
## :red_circle: Debes considerar
|
||||
|
|
|
@ -20,7 +20,7 @@ Elasticsearch is the distributed, RESTful search and analytics engine at the hea
|
|||
To learn more about Elasticsearch’s 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>
|
||||
## :red_circle: 负面特征
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "ElasticSearch 8"
|
|||
description.en = "Distributed and RESTful search engine"
|
||||
description.fr = "Moteur de recherche RESTful"
|
||||
|
||||
version = "8.11.1~ynh3"
|
||||
version = "8.14.1~ynh1"
|
||||
|
||||
maintainers = ["fflorent"]
|
||||
|
||||
|
@ -33,10 +33,10 @@ ram.runtime = "50M"
|
|||
|
||||
[resources]
|
||||
[resources.sources.main]
|
||||
arm64.url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.11.1-linux-aarch64.tar.gz"
|
||||
arm64.sha256 = "1728d26f398b58156411f80b871a2d5a0825ae446a8bec70a01a952fe7c707cb"
|
||||
amd64.url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.11.1-linux-x86_64.tar.gz"
|
||||
amd64.sha256 = "dd8572e4f50ffbe4079cce315b17c25e3cebaa02fd7eb134d2aa222703459780"
|
||||
arm64.url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.14.1-linux-aarch64.tar.gz"
|
||||
arm64.sha256 = "22a969b10c8d5ed21a258a85e64c9910e5d4931a70afccf8c4a85942b2a05900"
|
||||
amd64.url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.14.1-linux-x86_64.tar.gz"
|
||||
amd64.sha256 = "914226dea149dd5d056367be54bb28315325343776b7f04df47c5ced73f39faa"
|
||||
|
||||
[resources.system_user]
|
||||
|
||||
|
|
|
@ -28,23 +28,13 @@ 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
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/sysctl.d/90-max_map_count-elasticsearch.conf"
|
||||
|
||||
#=================================================
|
||||
# BACKUP SYSTEMD
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/systemd/system/$app.service"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -9,12 +9,6 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
#=================================================
|
||||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
# 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"
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=20
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
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"
|
||||
fi
|
||||
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="config/elasticsearch.yml"
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:$app "$install_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue