BANGKOK (AP) — Thailand has adopted a temporary constitution as the country makes its first step toward the slow return of electoral democracy after two months of military rule.

The 48-article charter was announced Tuesday night after its posting on the website of the Royal Gazette, where new laws must be published.

Its enactment is mostly a formality to carry out previously announced plans for drafting a new permanent constitution and forming a temporary legislature for parliamentary duties. The interim constitution will allow an interim legislature and Cabinet to begin governing the country in September.

The army overthrew an elected government on May 22, citing the need to end months of political conflict.

It has said it hopes to have a new election by October 2015.