Fixed the removal of old packages during plugin update.

This commit is contained in:
Fabian Schlenz 2020-10-31 11:58:27 +01:00
parent 3de70efa44
commit bd89975596

View File

@ -20,6 +20,7 @@
### &version; ### &version;
- Updated zabbix_agentd from 5.0.2 to 5.0.3 - Updated zabbix_agentd from 5.0.2 to 5.0.3
- Download updated plugins from stable instead of main. - Download updated plugins from stable instead of main.
- Fixed removal of old plugin packages during updates.
- Added new zabbix endpoint unraid.ups - Added new zabbix endpoint unraid.ups
### 2020.09.05.1 ### 2020.09.05.1
@ -46,7 +47,7 @@ if [ -e /boot/config/plugins/zabbix_agent/&packageName; ]; then
echo "Package already exists." echo "Package already exists."
else else
echo "Current &packageName; not found; removing old packages (if existing)." 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..." echo "Downloading current package..."
fi fi
</INLINE></FILE> </INLINE></FILE>