From 860dc6a25ee56f0baa4cafc8a09ba9c690a6426d Mon Sep 17 00:00:00 2001 From: xiaoz Date: Wed, 5 Jan 2022 10:52:13 +0800 Subject: [PATCH] fix bug --- node_exporter.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node_exporter.sh b/node_exporter.sh index 51d40bf..df13ff0 100644 --- a/node_exporter.sh +++ b/node_exporter.sh @@ -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(){ systemctl daemon-reload #删除安装目录 rm -rf ${INSTALL_PATH} + echo "----------------------------" + echo "Uninstall completed." } #根据参数一判断执行动作