| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | set -e |
| 6 | |
| 7 | PKG_VERSION=`dpkg-query -W -f='${Version}' groonga` |
| 8 | VERSION=`echo $PKG_VERSION | cut -d '-' -f1` |
| 9 | FETCHED_VERSION=`curl --silent http://localhost:10043/d/status | jq --raw-output ".[1].version"` |
| 10 | if [ "$VERSION" = "$FETCHED_VERSION" ]; then |
| 11 | echo "run: OK" |
| 12 | fi |