From 61d3ceebd7f149a4ddb123d7bc53ce256c596414 Mon Sep 17 00:00:00 2001 From: Mateusz <2871798+orhtej2@users.noreply.github.com> Date: Mon, 29 Jul 2024 10:18:53 +0200 Subject: [PATCH] Add redis_namespace to upgrade --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) 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