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(){ @@ -61,7 +61,7 @@ release_port(){
if [ $? -eq 0 ]
then
firewall_status=$(firewall-cmd --state)
if [[ "firewall_status" == "running" ]]
if [[ "$firewall_status" == "running" ]]
then
firewall-cmd --zone=public --add-port=29100/tcp --permanent
firewall-cmd --reload
@ -120,6 +120,8 @@ uninstall(){ @@ -120,6 +120,8 @@ uninstall(){
systemctl daemon-reload
#删除安装目录
rm -rf ${INSTALL_PATH}
echo "----------------------------"
echo "Uninstall completed."
}
#根据参数一判断执行动作

Loading…
Cancel
Save