import repository from arizona
[raven.git] / 2.0 / owl / scripts.d / stork
1 #!/bin/bash
2
3 echo '[stork]'
4 package=stork-client
5 result=`rpm -q $package`
6 if [ "$result" == "package $package is not installed" ]; then
7     version="NA"
8 else
9     version=$result
10 fi
11 echo "version=$version"
12
13 last="NA"
14
15 if [ -e /usr/local/stork/var/package.log ]; then
16     last=`tail -1 /usr/local/stork/var/package.log`
17 fi
18
19 echo "lastpackage=$last"
20
21 python -c "import ravenlib.stats; ravenlib.stats.print_owl(None,[], ['stork_upgrade'],['stork_upgrade'])"