diff --git a/plugins/zabbix/install.sh b/plugins/zabbix/install.sh index 221eb43c0..58593dec2 100755 --- a/plugins/zabbix/install.sh +++ b/plugins/zabbix/install.sh @@ -48,14 +48,13 @@ Install_App() exit 1 fi - if [ "$?" == "0" ];then - mkdir -p $serverPath/zabbix - echo "${VERSION}" > $serverPath/zabbix/version.pl + mkdir -p $serverPath/zabbix + echo "${VERSION}" > $serverPath/zabbix/version.pl + + #初始化 + cd ${rootPath} && python3 ${rootPath}/plugins/zabbix/index.py start + cd ${rootPath} && python3 ${rootPath}/plugins/zabbix/index.py initd_install - #初始化 - cd ${rootPath} && python3 ${rootPath}/plugins/zabbix/index.py start - cd ${rootPath} && python3 ${rootPath}/plugins/zabbix/index.py initd_install - fi echo 'Zabbix安装完成' }