I have bash script on our server which copies a base Wordpress system we have from another server and creates new virtual server for it, and changes config settings in the wp-config.php file to make the copy live on the new server domain. Takes about 5 mins, its a fantastic and quick for us to create new websites from our base system.
But it needs SSH access to run it from the command line, and SFTP access to change settings in the file (e.g. enter the domain name).
What would be the best way to have this as a module in Virtualmin or Webmin? Ideally we need a form to enter the domain name, alias domain name, username, database name and password, and then it passes this to our bash script to run it and create the site. This way my developers who are not familiar with SSH can easily run it without accessing the command line.
Thanks!