536e04848b
It's actually not portable to use mktemp without an argument, so let's add a default template. Change-Id: I5c254b12c05457d9e3ed5788dabb4c317d97b4aa
10 lines
332 B
Bash
Executable File
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
|