Description
This script fails a lot because it just runs things blindly without checking if there was success or failure. It's just a poorly written hack.
The script should first prompt a user whether to attempt to install the necessary packages. It should then, separately, confirm the necessary packages are installed before asking for configuration settings like IPs etc. I think this was a hack that only worked for one machine (probably based on some blog post brain fart) which was then haphazardly expanded to support some other distros without anyone considering how to write a proper program. I mean once you have either a working or non-working installation (which it is who the heck knows), the only way to proceed from there is to delete packages whether the user wants the packages deleted or not. It's all very odd, but I suppose this is the UNIX way for better or worse.