This script is a demo of how to generally create a 1-click installation script.
You can use this as starter point for your own 1-click installation script.
#!/bin/bash
# Navigate into the right path
cd /home/{SYSTEM_USER}/{DOMAIN}
# Remove any traces of current files
rm -rf *
# Get a fresh WordPress installation (-q means quiet so logs don't get spammed)
wget -q https://wordpress.org/latest.zip
# Unzip it
unzip latest.zip
# Remove the ZIP as we do not need it anymore
rm latest.zip
# Move the wordpress folder to the right public folder for our NGINX public path
mv wordpress public
Welcome to the world of DomainRooster, where roosters (and hens) rule the roost! We're a one-stop shop for all your entrepreneurial needs, bringing together domain names and website hosting, and all the tools you need to bring your ideas to life. With our help, you'll soar to new heights and hatch great success. Think of us as your trusty sidekick, always there to lend a wing and help you navigate the sometimes-complex world of domain names and web hosting. Our team of roosters are experts in their fields and are always on hand to answer any questions and provide guidance. So why wait? Sign up today and join the ranks of the world's greatest entrepreneurs. With DomainRooster, the sky's the limit! And remember, as the saying goes, "Successful people do what unsuccessful people are not willing to do." So don't be afraid to take that leap of faith - DomainRooster is here to help you reach for the stars. Caw on!