diff --git a/scripts/upgrade b/scripts/upgrade index 2dd3d32..c889e65 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,6 +39,11 @@ if [[ -z "${service:-}" ]]; then service="$app-web.service" ynh_app_setting_set --app="$app" --key=service --value="$service" fi +# Set `redis_namespace` settings +if [[ -z "${redis_namespace:-}" ]]; then + redis_namespace=${app}_production + ynh_app_setting_set --app="$app" --key=redis_namespace --value="$redis_namespace" +fi # Remove previous added repository ynh_remove_extra_repo