mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Setup firewall rules on CentOS 7. (#4329)
This commit is contained in:
parent
2d758be0e1
commit
24211cb674
|
@ -526,6 +526,12 @@ case $distro in
|
|||
|
||||
installsnipeit
|
||||
|
||||
if [ "$(firewall-cmd --state)" == "running" ]; then
|
||||
echo "* Configuring firewall."
|
||||
log "firewall-cmd --zone=public --add-port=http/tcp --permanent"
|
||||
log "firewall-cmd --reload"
|
||||
fi
|
||||
|
||||
#Check if SELinux is enforcing
|
||||
if [ "$(getenforce)" == "Enforcing" ]; then
|
||||
echo "* Configuring SELinux."
|
||||
|
|
Loading…
Reference in a new issue