* Changes for Red Hat Enterprise Linux.
RHEL uses "rhel" in the ID field in /etc/os-release. We'll leave
"redhat" in the script just in case.
Also, RHEL uses a two digit version number in the VERSION_ID field. So
instead of looking for just "7", look for anything that starts with "7".
This should fix RHEL installations as well as not break anything
with CentOS.
* Fixes issue #3079.
"lsb_release -s -r" returns a two digit version number (at least on recent CentOS releases) while the script is looking for a single digit version. We'll change the script so that it only looks for the version starting with 6. This fixes recent releases of CentOS, while also not breaking previous versions that may have used a single digit.
* detect SELinux
detect SELinux is enforcing and set required security policies for
CentOS 7
* Centos 6 iptables
allow http/https if iptables is running
Fix for detecting centos6. Not ideal, but hopefully no one has a fresh install of centos5 lying around..
Also fix some issues with code not being ported in the centos6 section.
This essentially just changes the configuration section to work with the
new .env file, and leaves almost everything else alone. Some
reordering of code did occur to try and fix a number of issues I
encountered along the way. This still really needs to be rewritten to
only run what it should as root, and not everything, but that should get
more testing than there is between now and v3.
One thing to note: This changes fetching master.zip to the v3 alpha2
tag, for obviousish reasons. Once master goes back to v3, or there is a
way of downloading a v3 tarball on a regular basis, it should be changed
to do that again.