Nov 6 (Reuters) - Australia's OptiComm Ltd said on Friday it had agreed to be acquired by Uniti Group Ltd in a deal valued at A$694.2 million ($505.03 million), bringing an end to a two-month takeover battle for the fibre infrastructure provider.

OptiComm shareholders backed a revised cash plus stock offer of A$6.67 per share made by Uniti last month, after pension fund Aware Super's exit from the race.

Shares of OptiComm have climbed nearly a quarter from Uniti's first offer. ($1 = 1.3746 Australian dollars) (Reporting by Shriya Ramakrishnan and A K Pranav in Bengaluru; Editing by Muralikumar Anantharaman)