Bootscript for setting up a new box
Simply run wget -qO- https://github.com/ritey/booter/archive/master.zip | unzip - chmod +x booter-master/ -R cd booter-master sh booter.sh
Argument options include:
- SITENAME="website"
- DOMAIN="website"
- PASSWORD='123456789!'
- IPADDRESS="YOUR FIXED IPADDRESS"
- PHP="5.6|7.0"
- DRUSH
- SERVER="apache|nginx"
For example:
wget -qO- https://github.com/ritey/booter/archive/master.zip | unzip - chmod +x booter-master/ -R cd booter-master
sh booter.sh SITENAME=GitHub DOMAIN=github.com PASSWORD=password123 sh booter.sh SITENAME=GitHub DOMAIN=github.com PASSWORD=password123 PHP=7.0 DRUSH sh booter.sh SITENAME=GitHub DOMAIN=github.com PASSWORD=password123 SERVER=nginx PHP=7.0 DRUSH
### SITENAME
Used to name the apache configuration file and create the folder name for your website to reside in
### DOMAIN
The domain to be used to access the website
Used to to set the root password for MySQL
Used in the firewall rule to limit SSH access to only the specified IP address
Specify which PHP version to install. Can be either 5.6 (default) or 7.0
If added DRUSH to command, drush will be installed.
Specify which server to use. Can be either apache (default) or nginx (not implemented fully).