aodh/tools/config/check_uptodate.sh
Julien Danjou 11e0766bd7 Update openstack.common
Change-Id: Ib9dfbcf3f08b20671aadd76f8789d9a9e72fd2eb
2013-07-30 14:21:56 +02:00

10 lines
296 B
Bash
Executable File

#!/bin/sh
TEMPDIR=`mktemp -d`
CFGFILE=ceilometer.conf.sample
tools/config/generate_sample.sh -b ./ -p ceilometer -o $TEMPDIR
if ! diff $TEMPDIR/$CFGFILE etc/ceilometer/$CFGFILE
then
echo "E: ceilometer.conf.sample is not up to date, please run tools/config/generate_sample.sh"
exit 42
fi