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

fix linter

This commit is contained in:
Éric Gaspar 2024-08-04 08:19:19 +02:00
parent c41f66cd09
commit de19083c77
3 changed files with 3 additions and 20 deletions

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
#=================================================