Riga face Dundalk, with a place in the second qualifying round up for grabs.