Custom Commands on Virtual server Install

I have wordpress sat in a folder in my root, every time after i create a new server i have to run the following comand each time to get wordpress into there own public_html directory:

cp -r /downloads/blog/ /home/SOMESERVER/public_html/

is there a way to add it on the end of each server install script, where is this file?

Also is there a way to put custom commands on the clients dashboard to run certain commands like this.

Im not looking for it to install wordpress just move the files so my client can set it up

Thanks David

Howdy,

You can always put files/dirs into /etc/skel/ that you want copied to the homedirs of new Virtual Servers you create.

However, you can also run custom commands using the options in System Settings -> Module Config -> Actions Upon User and Server Creation.

-Eric

Epic! Thanks!
:slight_smile: