Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for Red Hat Enterprise Linux 7 and CentOS 6 #3846

Merged
merged 2 commits into from
Aug 18, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions snipeit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ case $distro in
echo " 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
;;
Expand Down Expand Up @@ -292,7 +292,7 @@ case $distro in
service apache2 restart
;;
centos )
if [ "$version" == "6" ]; then
if [[ "$version" =~ ^6 ]]; then
##################################### Install for Centos/Redhat 6 ##############################################

webdir=/var/www/html
Expand Down Expand Up @@ -409,7 +409,7 @@ case $distro in

service httpd restart

elif [ "$version" == "7" ]; then
elif [[ "$version" =~ ^7 ]]; then
##################################### Install for Centos/Redhat 7 ##############################################

webdir=/var/www/html
Expand Down