From 1ceef95ce8d880e02a958ca71370b3b584c9734e Mon Sep 17 00:00:00 2001 From: Kayou Date: Mon, 24 Jun 2019 09:40:12 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5ab1fc2..e1e1a87 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -221,14 +221,14 @@ if [ $is_public -eq 1 ] then ynh_app_setting_set --app=$app --key=skipped_uris --value="/" - # Keep /admin private + # Keep /admin private if [ "$path_url" == "/" ]; then # If the path is /, clear it to prevent any error with the regex. path_url="" fi # Modify the domain to be used in a regex domain_regex=$(echo "$domain" | sed 's@-@.@g') - ynh_app_setting_set $app protected_regex "$domain_regex$path_url/admin/" + ynh_app_setting_set --app=$app -key=protected_regex -value="$domain_regex$path_url/admin/" fi #=================================================