Fix some weird bash issues caused when merging the v2 and v3 versions of the script.

This commit is contained in:
Daniel Meltzer 2016-05-29 15:54:20 -05:00
parent d92de14413
commit 0da1e186d7

View file

@ -342,7 +342,7 @@ case $distro in
service apache2 restart service apache2 restart
;; ;;
centos ) centos )
if [ "$version" == "6" ]; if [ "$version" == "6" ]; then
##################################### Install for Centos/Redhat 6 ############################################## ##################################### Install for Centos/Redhat 6 ##############################################
webdir=/var/www/html webdir=/var/www/html
@ -467,7 +467,6 @@ case $distro in
# firewall-cmd --reload # firewall-cmd --reload
service httpd restart service httpd restart
;;
elif [ "$version" == "7" ]; then elif [ "$version" == "7" ]; then
##################################### Install for Centos/Redhat 7 ############################################## ##################################### Install for Centos/Redhat 7 ##############################################
@ -586,7 +585,6 @@ case $distro in
# firewall-cmd --reload # firewall-cmd --reload
systemctl restart httpd.service systemctl restart httpd.service
;;
else else
echo "Unable to Handle Centos Version #. Version Found: " $version echo "Unable to Handle Centos Version #. Version Found: " $version