Update debian.sh

This commit is contained in:
Mr Chen 2024-07-19 11:59:38 +08:00
parent 269d0dc57e
commit d32dd19dd0
1 changed files with 4 additions and 2 deletions

View File

@ -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}
fi
dpkg --configure -a
# apt-get -f install
# dpkg --configure -a
cd $serverPath/source/zabbix && dpkg -i ${ZABBIX_NAME}
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-agent
rm -rf /etc/zabbix
dpkg --configure -a
# dpkg --configure -a
echo "卸载成功"
}