update failover.sh