From f8d933e0faa7d4bc59a0447e8b2c59647b9cd87b Mon Sep 17 00:00:00 2001 From: Simon Mellerin Date: Fri, 5 Jan 2024 10:57:31 +0100 Subject: [PATCH] Add upgrade warning: aeneria should be now install on a dedicated domain --- scripts/upgrade | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index bd035f7..2b4b859 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -28,14 +28,12 @@ if [ -z "${minutes:-}" ] || [ -z "${hour:-}" ]; then generate_random_minutes_hour fi -ynh_print_info --message="app: $app - domain: $domain - path: $path" - # Before version 2.x æneria could be installed under a path, # this functionnality has been deprecated since version 2.0.0 and æneria # now need to be installed under its own domain. # If the app is currently installed under a path, we warn the admin # that he should move the app under its own domain -if [[ -z "$path" ]]; then +if [ -n "$path" ]; then ynh_die --message="Since version 2.0.0, $app need to be installed under its own domain. \ Before upgrading, change $app URL: delete the path and switch to a new domain if needed." fi