From 5e5aed051f1c5e2cfc705da59b0f7f1cbf9a40db Mon Sep 17 00:00:00 2001
From: Juan Ferrer Toribio <juan@verdnatura.es>
Date: Sun, 6 Apr 2025 06:46:43 +0200
Subject: [PATCH] fix: refs #8140 fix call to role-change script

---
 roles/db/files/mariabackup/bacula-after.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/db/files/mariabackup/bacula-after.sh b/roles/db/files/mariabackup/bacula-after.sh
index 6857ed7..6cbaa68 100755
--- a/roles/db/files/mariabackup/bacula-after.sh
+++ b/roles/db/files/mariabackup/bacula-after.sh
@@ -46,7 +46,7 @@ fi
 
 
 echo "Promoting Events."
-"/root/scripts/events-promote.sh"
+"/root/scripts/role-change.sh --promote"
 
 for node in "${dbClusterSiblings[@]}"; do
 	ssh root@$node service mysql start