A free open source IT asset/license management system
Fixes for Red Hat Enterprise Linux 7 and CentOS 6 (#3846)
Ryan McGuire481143b891bc
diff --git a/snipeit.sh b/snipeit.shindex 87a3074fe9..662e6bcf5c 100755--- a/snipeit.sh+++ b/snipeit.sh@@ -151,7 +151,7 @@ case $distro inecho " The installer has detected Debian version $version as the OS."distro=debian;;- *centos*|*redhat*|*ol*)+ *centos*|*redhat*|*ol*|*rhel*)echo " The installer has detected $distro version $version as the OS."distro=centos;;@@ -292,7 +292,7 @@ case $distro inservice apache2 restart;;centos )- if [ "$version" == "6" ]; then+ if [[ "$version" =~ ^6 ]]; then##################################### Install for Centos/Redhat 6 ##############################################webdir=/var/www/html@@ -409,7 +409,7 @@ case $distro inservice httpd restart- elif [ "$version" == "7" ]; then+ elif [[ "$version" =~ ^7 ]]; then##################################### Install for Centos/Redhat 7 ##############################################webdir=/var/www/html