From c3109edb323ccfbd2cc14b4a99be29fcce347e6d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 14 Mar 2021 22:54:50 +0100 Subject: [PATCH 1/2] Remove is_public var --- scripts/install | 1 - scripts/upgrade | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/scripts/install b/scripts/install index 513cc18..a6a57d2 100644 --- a/scripts/install +++ b/scripts/install @@ -47,7 +47,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=2 ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=is_public --value=$is_public #================================================= # STANDARD MODIFICATIONS diff --git a/scripts/upgrade b/scripts/upgrade index c35e989..f43378c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,7 +18,6 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= @@ -32,15 +31,6 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Ensuring downward compatibility..." -# Fix is_public as a boolean value -if [ "$is_public" = "Yes" ]; then - ynh_app_setting_set --app=$app --key=is_public --value=1 - is_public=1 -elif [ "$is_public" = "No" ]; then - ynh_app_setting_set --app=$app --key=is_public --value=0 - is_public=0 -fi - # If final_path doesn't exist, create it if [ -z "$final_path" ]; then final_path=/var/www/$app From d72b778e7bc0d583f8671e44dcfe4759c0987d66 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 15 Mar 2021 09:19:37 +0100 Subject: [PATCH 2/2] Update manifest.json --- manifest.json | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/manifest.json b/manifest.json index 2c4c9cd..7255722 100644 --- a/manifest.json +++ b/manifest.json @@ -15,7 +15,7 @@ "email": "opi@zeropi.net" }, "requirements": { - "yunohost": ">= 3.8.1" + "yunohost": ">= 4.1.7" }, "multi_instance": false, "services": [ @@ -27,32 +27,17 @@ { "name": "domain", "type": "domain", - "ask": { - "en": "Choose a domain for Searx", - "fr": "Choisissez un domaine pour Searx", - "de": "Wählen einen Domain-Namen für Searx" - }, "example": "domain.org" }, { "name": "path", "type": "path", - "ask": { - "en": "Choose a path for Searx", - "fr": "Choisissez un chemin pour Searx", - "de": "Wählen einen Pfad für Searx" - }, "example": "/searx", "default": "/searx" }, { "name": "is_public", "type": "boolean", - "ask": { - "en": "Is it a public Searx site?", - "fr": "Est-ce un site public ?", - "de": "Ist es eine öffentliche Applikation ?" - }, "help": { "en": "If enabled, Searx will be accessible by people who do not have an account. This can be changed later via the webadmin.", "fr": "Si cette case est cochée, Searx sera accessible aux personnes n’ayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin.",