mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fix some weird bash issues caused when merging the v2 and v3 versions of the script.
This commit is contained in:
parent
d92de14413
commit
0da1e186d7
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue