From 0da1e186d7652c698b294c76b141646e64121e2c Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Sun, 29 May 2016 15:54:20 -0500 Subject: [PATCH] Fix some weird bash issues caused when merging the v2 and v3 versions of the script. --- snipeit.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/snipeit.sh b/snipeit.sh index c72906f226..4721badd53 100755 --- a/snipeit.sh +++ b/snipeit.sh @@ -342,7 +342,7 @@ case $distro in service apache2 restart ;; centos ) - if [ "$version" == "6" ]; + if [ "$version" == "6" ]; then ##################################### Install for Centos/Redhat 6 ############################################## webdir=/var/www/html @@ -467,7 +467,6 @@ case $distro in # firewall-cmd --reload service httpd restart - ;; elif [ "$version" == "7" ]; then ##################################### Install for Centos/Redhat 7 ############################################## @@ -586,8 +585,7 @@ case $distro in # firewall-cmd --reload systemctl restart httpd.service - ;; - + else echo "Unable to Handle Centos Version #. Version Found: " $version return 1