From 85ae2ff349aece671861b2eb17c45ff0c0d53d68 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 19 Jul 2024 23:50:45 +0800 Subject: [PATCH] Update install.sh --- plugins/zabbix_agent/install.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/zabbix_agent/install.sh b/plugins/zabbix_agent/install.sh index d666cbc08..17cd99106 100755 --- a/plugins/zabbix_agent/install.sh +++ b/plugins/zabbix_agent/install.sh @@ -47,14 +47,14 @@ Install_App() exit 1 fi - if [ "$?" == "0" ];then - mkdir -p $serverPath/zabbix_agent - echo "${VERSION}" > $serverPath/zabbix_agent/version.pl - #初始化 - cd ${rootPath} && python3 ${rootPath}/plugins/zabbix_agent/index.py start - cd ${rootPath} && python3 ${rootPath}/plugins/zabbix_agent/index.py initd_install - fi + mkdir -p $serverPath/zabbix_agent + echo "${VERSION}" > $serverPath/zabbix_agent/version.pl + + #初始化 + cd ${rootPath} && python3 ${rootPath}/plugins/zabbix_agent/index.py start + cd ${rootPath} && python3 ${rootPath}/plugins/zabbix_agent/index.py initd_install + echo 'Zabbix安装完成' }