From bd8997559611ba046aedd7ac65921c7ea69a0195 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Sat, 31 Oct 2020 11:58:27 +0100 Subject: [PATCH] Fixed the removal of old packages during plugin update. --- zabbix_agent.plg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zabbix_agent.plg b/zabbix_agent.plg index 5187731..4677ec4 100644 --- a/zabbix_agent.plg +++ b/zabbix_agent.plg @@ -20,6 +20,7 @@ ### &version; - Updated zabbix_agentd from 5.0.2 to 5.0.3 - Download updated plugins from stable instead of main. +- Fixed removal of old plugin packages during updates. - Added new zabbix endpoint unraid.ups ### 2020.09.05.1 @@ -46,7 +47,7 @@ if [ -e /boot/config/plugins/zabbix_agent/&packageName; ]; then echo "Package already exists." else echo "Current &packageName; not found; removing old packages (if existing)." - rm /boot/config/plugins/zabbix_agent/*.package.tgz + rm /boot/config/plugins/zabbix_agent/*.txz echo "Downloading current package..." fi