diff --git a/failover/failover.sh b/failover/failover.sh index 99a1c25..1c3c5e0 100755 --- a/failover/failover.sh +++ b/failover/failover.sh @@ -38,7 +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 + ./restore_xi.sh /store/backups/nagiosxi/$mysqlfile } case "$hostname" in