I'm automating the process of creating a web-based applications from a template in froxlor. I'm using the API to:
1. Create a domain
2. Create a database
Then I'm bootstrapping the database and copying a web app (php files) into the domain's directory.
Right now I'm sort of brute forcing this, by running a CLI script as root, which does all of these things -- running as root allows me to explicitly run the froxlor cron script to generate the site, and then copy the files into the domain's directory and changing ownership to the domain's customer user.
However, I'd like to try to improve on this so that I don't need to run it as root.
Ideally Froxlor would allow me to provide a custom "site template" for when it creates the site. Then I wouldn't need to do any post-processing outside of froxlor. Looking through the sources it looks like it doesn't do this right now - it just has a single "standardcustomer" template that it uses for all sites.
Question
Steve Hannah
I'm automating the process of creating a web-based applications from a template in froxlor. I'm using the API to:
1. Create a domain
2. Create a database
Then I'm bootstrapping the database and copying a web app (php files) into the domain's directory.
Right now I'm sort of brute forcing this, by running a CLI script as root, which does all of these things -- running as root allows me to explicitly run the froxlor cron script to generate the site, and then copy the files into the domain's directory and changing ownership to the domain's customer user.
However, I'd like to try to improve on this so that I don't need to run it as root.
Ideally Froxlor would allow me to provide a custom "site template" for when it creates the site. Then I wouldn't need to do any post-processing outside of froxlor. Looking through the sources it looks like it doesn't do this right now - it just has a single "standardcustomer" template that it uses for all sites.
Is there any recommended approach for this?
Thanks for any pointers.
Steve
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.