When domain added, automatically add ssl/wordpress

When I add a domain for a user, would like to automatically:

Enable SSL for this domain
Use Let’s Encrypt to obtain SSL certificate
Enable automatic HTTPS redirection
install wordpress

what would the best way to accomplish this be?
also, if i wanted to copy over some wordpress templates/plugins when wordpress is installed, what is the recommended way?

create new package and add the file .sh

And run the cli command to do that part.
It should be possible with cli support for Quickinstaller

1 Like

thank you. Is there a way to specify a .sh file to run when a domain is enabled inside of a package? I think that would be a great way to do this. so the package would have a after-domain-added.sh which would run when a new domain is added for a customer that has that package. i wonder if this would be considered a “hook” ?