|
|
@ -24,7 +24,8 @@ Install_App() |
|
|
|
wget -O $serverPath/source/zabbix/${ZABBIX_NAME} https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/${ZABBIX_NAME} |
|
|
|
wget -O $serverPath/source/zabbix/${ZABBIX_NAME} https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/${ZABBIX_NAME} |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
dpkg --configure -a |
|
|
|
# apt-get -f install |
|
|
|
|
|
|
|
# dpkg --configure -a |
|
|
|
|
|
|
|
|
|
|
|
cd $serverPath/source/zabbix && dpkg -i ${ZABBIX_NAME} |
|
|
|
cd $serverPath/source/zabbix && dpkg -i ${ZABBIX_NAME} |
|
|
|
apt update -y |
|
|
|
apt update -y |
|
|
@ -38,7 +39,8 @@ Uninstall_App() |
|
|
|
apt remove -y zabbix-server-mysql zabbix-frontend-php zabbix-sql-scripts zabbix-get |
|
|
|
apt remove -y zabbix-server-mysql zabbix-frontend-php zabbix-sql-scripts zabbix-get |
|
|
|
apt remove -y zabbix-agent |
|
|
|
apt remove -y zabbix-agent |
|
|
|
rm -rf /etc/zabbix |
|
|
|
rm -rf /etc/zabbix |
|
|
|
dpkg --configure -a |
|
|
|
|
|
|
|
|
|
|
|
# dpkg --configure -a |
|
|
|
echo "卸载成功" |
|
|
|
echo "卸载成功" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|