mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-17 00:01:14 +02:00
Zabbix: Add '-y' flag to apt install commands (#17933)
This commit is contained in:
committed by
GitHub
parent
4d95ec20fd
commit
c8fdeeab93
+3
-3
@@ -86,16 +86,16 @@ function update_script() {
|
||||
rm -rf /tmp/zabbix-release_*.deb
|
||||
apt_update_safe
|
||||
|
||||
$STD apt install --only-upgrade zabbix-server-pgsql zabbix-frontend-php php8.4-pgsql
|
||||
$STD apt install --only-upgrade -y zabbix-server-pgsql zabbix-frontend-php php8.4-pgsql
|
||||
|
||||
if [[ "$AGENT_SERVICE" == "zabbix-agent2" ]]; then
|
||||
$STD apt install --only-upgrade zabbix-agent2 zabbix-agent2-plugin-postgresql
|
||||
$STD apt install --only-upgrade -y zabbix-agent2 zabbix-agent2-plugin-postgresql
|
||||
if [ -f /etc/zabbix/zabbix_agent2.d/plugins.d/nvidia.conf ]; then
|
||||
sed -i 's|^Plugins.NVIDIA.System.Path=.*|# Plugins.NVIDIA.System.Path=/usr/libexec/zabbix/zabbix-agent2-plugin-nvidia-gpu|' \
|
||||
/etc/zabbix/zabbix_agent2.d/plugins.d/nvidia.conf
|
||||
fi
|
||||
elif [[ "$AGENT_SERVICE" == "zabbix-agent" ]]; then
|
||||
$STD apt install --only-upgrade zabbix-agent
|
||||
$STD apt install --only-upgrade -y zabbix-agent
|
||||
fi
|
||||
|
||||
if command -v fping >/dev/null 2>&1; then
|
||||
|
||||
Reference in New Issue
Block a user