aodh/tools/config/check_uptodate.sh
Julien Danjou 536e04848b config: specify a template for mktemp
It's actually not portable to use mktemp without an argument, so let's
add a default template.

Change-Id: I5c254b12c05457d9e3ed5788dabb4c317d97b4aa
2013-12-11 18:42:58 +01:00

10 lines
332 B
Bash
Executable File

#!/bin/sh
TEMPDIR=`mktemp -d /tmp/ceilometer-check-config-XXXXXX`
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