Page 1 of 1

Copy file in public_html folder when adding a domain

Posted: Fri Jul 12, 2019 7:40 pm
by jonay
Hello,

Let's say I have a file.php in the /home/file.php directory and I want this file to be copied to /home/user/domain/public_html/ every time I add a domain to vestacp.

How could I do that?

I want it to install my script without having to upload the file to the directory every time I add a new domain.

Thank you

Re: Copy file in public_html folder when adding a domain

Posted: Mon Jul 29, 2019 2:43 pm
by dreiggy
Hi,

you can copy your script to webroot skeleton: /usr/local/vesta/data/templates/web/skel/public_html

Then when you will create a new domain, your file should be copied to domain webroot folder.