mirror of
https://github.com/openwrt/packages.git
synced 2026-07-12 20:34:25 +04:00
zabbix: add version check override
Allow CI to pass the version check for packages with executables with not version output. Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
This commit is contained in:
committed by
Josef Schlehofer
parent
d5eb49a42d
commit
9ec085718d
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$PKG_NAME" in
|
||||
zabbix-extra-* | zabbix-frontend-server)
|
||||
exit 0
|
||||
;;
|
||||
zabbix-agentd-basic)
|
||||
zabbix_agentd -V 2>&1 | grep -F "${PKG_VERSION}"
|
||||
;;
|
||||
zabbix-proxy-basic-sqlite)
|
||||
zabbix_proxy -V 2>&1 | grep -F "${PKG_VERSION}"
|
||||
;;
|
||||
*)
|
||||
# We use tr as parameter string replace is undefined in POSIX
|
||||
"$(echo "$PKG_NAME" | tr '-' '_')" -V 2>&1 | grep -F "${PKG_VERSION}"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user