Where, by the provisions of any general or special law, the members of the city council of any city have been made ex-officio school directors or members of the board of education for the school district of which the city constitutes the whole or a part, the school directors or members of the board of education shall be appointed as provided in Section 32-3.1.