From 9c192d6030d4436c2624348ee548e713b7278534 Mon Sep 17 00:00:00 2001 From: Eric Loyd Date: Wed, 18 Sep 2019 12:43:51 -0400 Subject: [PATCH] First attempt at doing failover --- failover/failover.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/failover/failover.sh b/failover/failover.sh index e802b89..99a1c25 100755 --- a/failover/failover.sh +++ b/failover/failover.sh @@ -38,6 +38,7 @@ do_secondary() { echo "We are the secondary. Expanding package from the primary." mysqlfile=`ls -tr1 /store/backups/nagiosxi/ | tail -1` [ -z "$mysqlfile" ] && echo "No MySQL Backup file." && exit 2 + ./restore_xi.sh $mysqlfile } case "$hostname" in