Now it works

This commit is contained in:
Mikael Nordin 2017-01-16 14:00:20 +01:00 committed by GitHub
parent 475a4b3919
commit 67de4dc9cb

View file

@ -216,7 +216,7 @@ sub run {
# If we have an active shared cronfile, we should also have an old shared
# See if I am the one
if (is_active(get_nodes) ){
if(compare($cronfile, $passivesharedcronfile) == 0) {
if(compare($cronfile, $passivesharedcronfile) == 0 and compare($cronfile, $activesharedcronfile) != 0) {
print "There has been a failover, switching to active cronfile\n";
copy($activesharedcronfile, $cronfile);
}