The package setup for CentOS 7 already installs git so use it for the install. This makes later updates easier for the end users. They can simply use git pull like the instructions say for updating.
* used shellcheck to lint snipeit.sh
* do not depend on lsb-release command
* add lsb codename
* really use perms()
* more fixes
* quiet apt
* silent logging using log()
* start mysql if not running
* added curl to ubuntu
* added logfile to log function
* update apt index after adding mariadb repo
* fixed typo
* review fixes
* 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.