From 2d9e0dd57dee203123953c3d3a1e4962d4c7d8f3 Mon Sep 17 00:00:00 2001 From: Nurlan Moldomurov Date: Wed, 30 Aug 2023 13:13:41 +0300 Subject: [PATCH] PMM-12221 rename variable. --- .../playbook/tasks/roles/nginx/files/conf.d/pmm.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update/ansible/playbook/tasks/roles/nginx/files/conf.d/pmm.conf b/update/ansible/playbook/tasks/roles/nginx/files/conf.d/pmm.conf index af66541da7..dfdbfe8f11 100644 --- a/update/ansible/playbook/tasks/roles/nginx/files/conf.d/pmm.conf +++ b/update/ansible/playbook/tasks/roles/nginx/files/conf.d/pmm.conf @@ -45,17 +45,17 @@ # this block checks for maintenance.html file and, if it exists, it redirects all requests to the maintenance page # there are two exceptions for it /v1/Updates/Status and /auth_request endpoints - set $skip_maintenance 0; + set $maintenance_mode 0; if (-f /usr/share/pmm-server/maintenance/maintenance.html) { - set $skip_maintenance 1; + set $maintenance_mode 1; } if ($request_uri ~* "^/v1/Updates/Status|^/auth_request") { - set $skip_maintenance 0; + set $maintenance_mode 0; } - if ($skip_maintenance = 1) { + if ($maintenance_mode = 1) { return 503; }