Again fixed issue with cpanel sync return code handling
This commit is contained in:
parent
f91f2a80e2
commit
35f3977ee6
|
@ -189,7 +189,7 @@ sub do_sync {
|
|||
print "Syncing zone $zone... ";
|
||||
nicedie "Couldn't sync $zone: Don't have a known sync method for network type $net_type." unless $net_type eq "cpanel";
|
||||
$res = sync_cpanel $zone if $net_type eq "cpanel";
|
||||
print (($res) ? "Synchronised\n" : "Failed\n");
|
||||
print (($res == 0) ? "Synchronised\n" : "Failed\n");
|
||||
}
|
||||
|
||||
#main
|
||||
|
|
Loading…
Reference in New Issue