Copy file in public_html folder when adding a domain
Copy file in public_html folder when adding a domain
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
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
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.
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.