Compare commits
No commits in common. "cfbcdb0869ff6663984820b6c6eb8b602c286e93" and "77975aadbc963b7400743e54370cb1efc4f1505c" have entirely different histories.
cfbcdb0869
...
77975aadbc
4
build.sh
4
build.sh
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
VERSION=`xpath -q -e 'string(//PLUGIN/@version)' zabbix_agent.plg`
|
||||
FILE="zabbix_agent-$VERSION-x86_64-1.txz"
|
||||
FILE="zabbix_agent-$VERSION.package.tgz"
|
||||
echo "Version in plugin file: $VERSION"
|
||||
echo "Generated file will be: $FILE"
|
||||
|
||||
@ -29,7 +29,7 @@ read
|
||||
|
||||
echo "Creating $FILE..."
|
||||
echo
|
||||
tar -cv --owner=root --group=root --lzma -C files -f "$FILE" .
|
||||
tar -czvf "$FILE" files
|
||||
echo
|
||||
read md5 _ < <(md5sum "$FILE")
|
||||
echo "MD5 of the resulting file for the plugin file: $md5"
|
||||
|
Binary file not shown.
BIN
zabbix_agent-2020.08.11.package.tgz
Normal file
BIN
zabbix_agent-2020.08.11.package.tgz
Normal file
Binary file not shown.
@ -6,10 +6,10 @@
|
||||
<!ENTITY plgauthor "fabianonline">
|
||||
<!ENTITY baseURL "https://git.schle.nz/fabian/unraid-zabbix_agent/raw/branch/main">
|
||||
<!ENTITY pluginURL "&baseURL;/zabbix_agent.plg">
|
||||
<!ENTITY version "2020.08.11.1">
|
||||
<!ENTITY packageName "zabbix_agent-&version;-x86_64-1.txz">
|
||||
<!ENTITY version "2020.08.11">
|
||||
<!ENTITY packageName "zabbix_agent-&version;.package.tgz">
|
||||
<!ENTITY packageURL "&baseURL;/&packageName;">
|
||||
<!ENTITY packageMD5 "5eedea739129f638ac5098945039d43b">
|
||||
<!ENTITY packageMD5 "dcf2e2bef5f4f88876ac52ed5ca1046c">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" packageMD5="&packageMD5;">
|
||||
@ -55,9 +55,8 @@ if [ -x /etc/rc.d/rc.zabbix_agentd ]; then
|
||||
fi
|
||||
|
||||
echo "Extracting support files..."
|
||||
upgradepkg --install-new /boot/config/plugins/zabbix_agent/&packageName;
|
||||
tar -xzvf /boot/config/plugins/zabbix_agent/&packageName; --strip=1 -C /
|
||||
|
||||
echo "Starting zabbix_agent..."
|
||||
/etc/rc.d/rc.zabbix_agentd start
|
||||
</INLINE></FILE>
|
||||
|
||||
@ -68,13 +67,14 @@ echo "Starting zabbix_agent..."
|
||||
echo "Removal of zabbix_agent plugin started."
|
||||
echo "Stopping zabbix_agentd..."
|
||||
/etc/rc.d/rc.zabbix_agentd stop
|
||||
|
||||
echo "Uninstalling package..."
|
||||
removepkg zabbix_agent
|
||||
|
||||
echo "Removing remaining plugin files..."
|
||||
rm -rf /boot/config/plugins/zabbix_agent
|
||||
|
||||
echo "Deleting /usr/sbin/zabbix_agentd..."
|
||||
rm /usr/sbin/zabbix_agentd
|
||||
echo "Deleting /etc/rc.d/rc.zabbix_agentd..."
|
||||
rm /etc/rc.d/rc.zabbix_agentd
|
||||
echo "Deleting /boot/config/plugins/zabbix_agent/..."
|
||||
rm -rf /boot/config/plugins/zabbix_agent/
|
||||
echo "Deleting /usr/local/emhttp/plugins/zabbix_agent/..."
|
||||
rm -rf /usr/local/emhttp/plugins/zabbix_agent/
|
||||
echo "Removal of zabbix_agent plugin completed."
|
||||
</INLINE></FILE>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user