1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/meilisearch_ynh.git synced 2024-09-03 19:45:59 +02:00

Upgrade to 0.15.0

This commit is contained in:
ericgaspar 2020-10-05 19:31:42 +02:00
parent 6eca4fbafb
commit 5ae5f9654d
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 14 additions and 25 deletions

View file

@ -12,7 +12,12 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to
Meilisearch is an opensource next generation search API. Meilisearch is an opensource next generation search API.
<<<<<<< Updated upstream
**Shipped version:** 0.10.1 **Shipped version:** 0.10.1
=======
**Shipped version:** 0.15.0
>>>>>>> Stashed changes
## Screenshots ## Screenshots
@ -44,10 +49,13 @@ It's an API and there is no authentification, without API key.
--- ---
Developers info ## Developers info
----------------
<<<<<<< Updated upstream
Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/meilisearch_ynh/tree/testing). Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/meilisearch_ynh/tree/testing).
=======
Please do your pull request to the [testing branch](https://github.com/frju365/meilisearch_ynh/tree/testing).
>>>>>>> Stashed changes
To try the testing branch, please proceed like that. To try the testing branch, please proceed like that.
``` ```

View file

@ -6,7 +6,7 @@
"en": "Lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine.", "en": "Lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine.",
"fr": "Moteur de recherche rapide, ultra-performant et tolérant aux fautes de frappe." "fr": "Moteur de recherche rapide, ultra-performant et tolérant aux fautes de frappe."
}, },
"version": "0.10.1~ynh1", "version": "0.15.0~ynh1",
"url": "https://www.meilisearch.com/", "url": "https://www.meilisearch.com/",
"license": "GPL-3.0", "license": "GPL-3.0",
"maintainer": { "maintainer": {

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
latest="v0.10.1" latest="v0.15.0"
ynh_detect_arch() { ynh_detect_arch() {
local architecture local architecture

View file

@ -32,33 +32,25 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
domain=$(ynh_app_setting_get --app=$app --key=domain) domain=$(ynh_app_setting_get --app=$app --key=domain)
#================================================= #=================================================
# STANDARD BACKUP STEPS # DECLARE DATA AND CONF FILES TO BACKUP
#================================================= #=================================================
# STOP SYSTEMD SERVICE ynh_print_info --message="Declaring files to be backed up..."
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --time --weight=1
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
#================================================= #=================================================
# BACKUP THE APP MAIN DIR # BACKUP THE APP MAIN DIR
#================================================= #=================================================
ynh_script_progression --message="Backing up the main app directory..." --time --weight=1
ynh_backup --src_path="$final_path" ynh_backup --src_path="$final_path"
#================================================= #=================================================
# BACKUP THE NGINX CONFIGURATION # BACKUP THE NGINX CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Backing up nginx web server configuration..." --time --weight=1
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
# BACKUP FAIL2BAN CONFIGURATION # BACKUP FAIL2BAN CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Backing up fail2ban configuration..." --time --weight=1
ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf" ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf"
ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf"
@ -68,24 +60,15 @@ ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf"
#================================================= #=================================================
# BACKUP LOGROTATE # BACKUP LOGROTATE
#================================================= #=================================================
ynh_script_progression --message="Backing up logrotate configuration..." --time --weight=1
ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/etc/logrotate.d/$app"
#================================================= #=================================================
# BACKUP SYSTEMD # BACKUP SYSTEMD
#================================================= #=================================================
ynh_script_progression --message="Backing up systemd configuration..." --time --weight=1
ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --time --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================

View file

@ -74,7 +74,6 @@ ynh_app_setting_set --app=$app --key=port --value=$port
#================================================= #=================================================
# DOWNLOAD AND INSTALL MEILISEARCH # DOWNLOAD AND INSTALL MEILISEARCH
#================================================= #=================================================
ynh_script_progression --message="Installing meilisearch..." --time --weight=5 ynh_script_progression --message="Installing meilisearch..." --time --weight=5
arch=$(ynh_detect_arch) arch=$(ynh_detect_arch)
@ -88,7 +87,6 @@ curl -OL https://github.com/meilisearch/MeiliSearch/releases/download/$latest/me
chmod +x "$release_file" chmod +x "$release_file"
mv "$release_file" /usr/bin/meilisearch mv "$release_file" /usr/bin/meilisearch
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================