Civilians have run the military for a very long time as any reading of Pepys diary will demonstrate or for the musical any listen to the lyrics of Gilbert and Sullivan.
Even under a military dictatorship civilians will, in some the form of a civil service, still play a large part in how things are put into practice.