heat/tools/conf/check_uptodate.sh

10 lines
259 B
Bash
Executable File

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