summaryrefslogtreecommitdiffstats
path: root/admin/syslog-ng/test-version.sh
blob: b098aec12f59bcd2384e215eeffe03df534261db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
syslog-ng)
	# The daemon is the only executable that reports a version. The tools
	# shipped next to it (dqtool, loggen, pdbtool, persist-tool,
	# syslog-ng-ctl, syslog-ng-debun, update-patterndb) only print their
	# usage, so the generic probe cannot read a version from them.
	syslog-ng --version | grep -F "$PKG_VERSION"
	;;

*)
	echo "Untested package: $PKG_NAME" >&2
	exit 1
	;;
esac