From 861118e378e555dc16b28040eba859c1a541a53a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 10 Jul 2024 13:19:45 +0200 Subject: [PATCH] Movim doesn't support a subpath anymore --- manifest.toml | 4 ---- scripts/upgrade | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.toml b/manifest.toml index 50f1167..5bcad7a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -35,10 +35,6 @@ ram.runtime = "50M" [install.domain] type = "domain" - [install.path] - type = "path" - default = "/movim" - [install.init_main_permission] type = "group" default = "visitors" diff --git a/scripts/upgrade b/scripts/upgrade index ccf78d3..df28999 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -41,6 +41,10 @@ if [ -f "$install_dir/config/db.inc.php" ]; then ynh_secure_remove --file="$install_dir/config/db.inc.php" fi +if [[ -n "${path:-}" ]] && [[ "${path:-}" != "/" ]]; then + ynh_die --message="Movim can't be installed in a subdir anymore. Please change_url to the root of a domain before upgrading." +fi + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================