change the home directory for sites via command line

Hi Guys;

Well, I did something stupid and made a whole bunch of sites with the configuration off just a bit -- the home directory was incorrect, and now I've got 100+ virtual servers in the wrong place.

I know that I can fix this one by one via the interface using the 'change domain name' screen, but I'd rather fix it one by one via the command line -- is there a way to do that?

Thanks! ~james

Status: 
Closed (fixed)

Comments

You can try using the API command virtualmin modify-domain --domain example.com --home /path/to/newhome

Yep, that did it -- thanks!

~james

Automatically closed -- issue fixed for 2 weeks with no activity.

Automatically closed -- issue fixed for 2 weeks with no activity.