Added conditional handling of replication peer for mysql install