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 v.0.7.0

This commit is contained in:
ericgaspar 2020-12-14 09:04:42 +01:00
parent 3a46f1ba3b
commit 8b87b46cab
No known key found for this signature in database
GPG key ID: 574F281483054D44
8 changed files with 14 additions and 22 deletions

View file

@ -12,7 +12,7 @@ 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.
**Shipped version:** 0.15.0 **Shipped version:** 0.17.0
## Screenshots ## Screenshots

View file

@ -34,9 +34,6 @@
change_url=1 change_url=1
actions=0 actions=0
config_panel=0 config_panel=0
;;; Levels
# If the level 5 (Package linter) is forced to 1. Please add justifications here.
Level 5=auto
;;; Options ;;; Options
Email= Email=
Notification=none Notification=none

View file

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine Description=Meilisearch: Lightning Fast Search Engine
After=systemd-user-sessions.service After=systemd-user-sessions.service
[Service] [Service]

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.15.0~ynh1", "version": "0.17.0~ynh1",
"url": "https://www.meilisearch.com/", "url": "https://www.meilisearch.com/",
"license": "GPL-3.0", "license": "GPL-3.0",
"maintainer": { "maintainer": {
@ -15,7 +15,7 @@
"url": "https://julien.gomes-dias.dev" "url": "https://julien.gomes-dias.dev"
}, },
"requirements": { "requirements": {
"yunohost": ">= 3.5" "yunohost": ">= 3.8.1"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [

View file

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

View file

@ -142,7 +142,7 @@ ynh_use_logrotate
# INTEGRATE SERVICE IN YUNOHOST # INTEGRATE SERVICE IN YUNOHOST
#================================================= #=================================================
yunohost service add $app --description "Opensource next generation search API" --log "/var/log/$app/$app.log" yunohost service add $app --description="Opensource next generation search API" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
@ -165,11 +165,12 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap
#================================================= #=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=1 ynh_script_progression --message="Configuring SSOwat..." --weight=1
# Make app public if necessary # Make app public if necessary or protect it
if [ $is_public -eq 1 ] if [ $is_public -eq 1 ]
then then
# unprotected_uris allows SSO credentials to be passed anyway. # Everyone can access the app.
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" # The "main" permission is automatically created before the install script.
ynh_permission_update --permission "main" --add "visitors"
fi fi
#================================================= #=================================================

View file

@ -101,13 +101,13 @@ ynh_system_user_create --username=$app
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1 ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
ynh_restore_file --origin_path="/etc/systemd/system/$app.service" ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service systemctl enable $app.service --quiet
#================================================= #=================================================
# INTEGRATE SERVICE IN YUNOHOST # INTEGRATE SERVICE IN YUNOHOST
#================================================= #=================================================
yunohost service add $app --description "Opensource next generation search API" --log "/var/log/$app/$app.log" yunohost service add $app --description="Opensource next generation search API" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE

View file

@ -172,16 +172,10 @@ ynh_add_systemd_config
chown -R $app:$app $final_path chown -R $app:$app $final_path
#================================================= #=================================================
# SETUP SSOWAT # INTEGRATE SERVICE IN YUNOHOST
#================================================= #=================================================
ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=1
# Make app public if necessary yunohost service add $app --description="Opensource next generation search API" --log="/var/log/$app/$app.log"
if [ $is_public -eq 1 ]
then
# unprotected_uris allows SSO credentials to be passed anyway
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/"
fi
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE