Browse Source

fix bug

master
xiaoz 3 years ago
parent
commit
df294be62e
  1. 2
      node_exporter.sh

2
node_exporter.sh

@ -52,7 +52,7 @@ release_port(){
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
firewall_status=$(firewall-cmd --state) firewall_status=$(firewall-cmd --state)
if[[ "firewall_status" == "running" ]] if [[ "firewall_status" == "running" ]]
then then
firewall-cmd --zone=public --add-port=29100/tcp --permanent firewall-cmd --zone=public --add-port=29100/tcp --permanent
firewall-cmd --reload firewall-cmd --reload

Loading…
Cancel
Save