diff --git a/scripts/upgrade b/scripts/upgrade index 4f90781..c17e2fa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,7 +33,7 @@ fi # 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 [ -n "$path" ]; then +if [ "$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