From 6f31241bfe94896331a72720f3f8e4aa84b5876a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 24 Jan 2024 09:14:15 +0100 Subject: [PATCH] Remove path question and subdir installation. Add args.path = "/" for old test_upgrade_from. --- manifest.toml | 5 ----- scripts/install | 8 ++++++++ tests.toml | 5 ++++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/manifest.toml b/manifest.toml index a24c82e..351dcdb 100644 --- a/manifest.toml +++ b/manifest.toml @@ -29,10 +29,6 @@ ram.runtime = "50M" [install.domain] type = "domain" - [install.path] - type = "path" - default = "/libreto" - [install.init_main_permission] help.en = "If enabled, Libreto will be accessible by people who do not have an account. This can be changed later via the webadmin." help.fr = "Si cette case est cochée, Libreto sera accessible aux personnes n’ayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin." @@ -65,4 +61,3 @@ ram.runtime = "50M" [resources.apt] packages = "php8.0-fpm" - \ No newline at end of file diff --git a/scripts/install b/scripts/install index f2a8091..810608c 100755 --- a/scripts/install +++ b/scripts/install @@ -9,6 +9,14 @@ source _common.sh source /usr/share/yunohost/helpers +#================================================= +# INITIALIZE AND STORE SETTINGS +#================================================= + +# FIXME: subdir install does not seem to be supported anymore. +path="/" +ynh_app_setting_set --app="$app" --key=path --value="$path" + #================================================= # STORE SETTINGS FROM MANIFEST #================================================= diff --git a/tests.toml b/tests.toml index fe5210c..97671ac 100644 --- a/tests.toml +++ b/tests.toml @@ -13,4 +13,7 @@ test_format = 1.0 # Commits to test upgrade from # ------------------------------- - test_upgrade_from.ce19369d.name = "Upgrade from 0.0.20180605~ynh3" + [default.test_upgrade_from.ce19369d] + name = "Upgrade from 0.0.20180605~ynh3" + args.domain = "sub.domain.tld" + args.path = "/"