I made this script for myself so I thought I would share it with all. This is what it does:
- downloads the latest.tar.gz on the public_html of the user and domain you enter.
- Removes the unnecessary files ( wp-config-sample.php, readme.html, license.txt and latest.tar.gz )
- Creates a seccure .htacess file & sets correct premssions for file
- Generates a robots.txt file with correnct ownership
- Creates a database with user and password you enter for WordPress use
- Creates a wp-config.php file with generated configuration and SALT included