010101 based on the content of the script, the main features seem to be able to install PHP, install Flarum, and apply the changes to use Flarum without a public folder.
I noticed something a bit dangerous for inattentive users. Under the uninstall script, if you press enter at the question "Where is Flarum be installed?" without typing anything, the script will start deleting every file on the server (
rm -r $WhereInstall/* with
$WhereInstall being an empty string) I think
rm might refuse to do it without an additional flag on some operating systems, but I don't have any VM to try this out at the moment. It might be safer to abort if the user types nothing at this point.
I'm not sure what the line
mv $WhereInstall/flarum /usr/local/bin is supposed to do? The
flarum executable is not supposed to be called globally. It contains relative paths to
site.php and the
vendor folder that would need updating, and even then I'm not sure every command would work as intended. It's intended to only be run from the Flarum folder itself.
Also it seems like the "Preparation" step uninstalls Apache and Nginx if they are already installed, but never installs them back? 🤔