aodh/tools/conf/check_uptodate.sh
Julien Danjou 2f594fc97a Check that the config file sample is always up to date
Change-Id: Ief192e8c88d052da68f13d3e9502c8799b8e1c17
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-06-21 13:57:10 +02:00

10 lines
279 B
Bash
Executable File

#!/bin/sh
TMPFILE=`mktemp`
trap "rm -f ${TMPFILE}" EXIT
tools/conf/generate_sample.sh "${TMPFILE}"
if ! cmp -s "${TMPFILE}" etc/ceilometer/ceilometer.conf.sample
then
echo "E: ceilometer.conf.sample is not up to date, please run tools/conf/generate_sample.sh"
exit 42
fi