Skip to content

A free open source IT asset/license management system

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

Daniel Meltzer0da1e186d765
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