This script is amazing. minor modification though - there is no longer a .zip file to download so the download step of the script can be updated to download a .tar, and then the follow unzip step modified to un-tar accordingly.
wget -q https://github.com/invoiceninja/invoiceninja/releases/download/current_release/invoiceninja.tar
tar -xvf invoiceninja.tar -C /var/www/destination_name
Thank you for the work that went into this.