Browse Source

fix bug

master
xiaoz 3 years ago
parent
commit
860dc6a25e
  1. 4
      node_exporter.sh

4
node_exporter.sh

@ -61,7 +61,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
@ -120,6 +120,8 @@ uninstall(){
systemctl daemon-reload systemctl daemon-reload
#删除安装目录 #删除安装目录
rm -rf ${INSTALL_PATH} rm -rf ${INSTALL_PATH}
echo "----------------------------"
echo "Uninstall completed."
} }
#根据参数一判断执行动作 #根据参数一判断执行动作

Loading…
Cancel
Save