From 59ce175497c17bb4ebe4ce6db3f4545238d9d293 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 18 Apr 2021 11:14:11 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index cf242a2..10a3fd9 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -46,6 +46,12 @@ if [ -z $final_path ]; then ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi +# If domain doesn't exist, create it +if [ -z "$domain" ]; then + domain=$server_domain + ynh_app_setting_set --app=$app --key=domain --value=$domain +fi + # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all