aodh/tools/config/check_uptodate.sh
Julien Danjou 7bb11bc760 Update oslo
This updates Oslo to the latest commit
997ab2776c9cad033234e28a92fb7bc0ef5bc4c0

It removes the test_service test file, as the behavior of restarting on
SIGHUP is dependent of openstack.common.service which has changed
recently, is already tested as part of oslo.incubator's tests.

Change-Id: I389c690f4febe9c69c1e2c39cd16961635469c75
2014-01-16 15:00:50 +01:00

26 lines
690 B
Bash
Executable File

#!/usr/bin/env bash
PROJECT_NAME=${PROJECT_NAME:-ceilometer}
CFGFILE_NAME=${PROJECT_NAME}.conf.sample
if [ -e etc/${PROJECT_NAME}/${CFGFILE_NAME} ]; then
CFGFILE=etc/${PROJECT_NAME}/${CFGFILE_NAME}
elif [ -e etc/${CFGFILE_NAME} ]; then
CFGFILE=etc/${CFGFILE_NAME}
else
echo "${0##*/}: can not find config file"
exit 1
fi
TEMPDIR=`mktemp -d /tmp/${PROJECT_NAME}.XXXXXX`
trap "rm -rf $TEMPDIR" EXIT
tools/config/generate_sample.sh -b ./ -p ${PROJECT_NAME} -o ${TEMPDIR}
if ! diff -u ${TEMPDIR}/${CFGFILE_NAME} ${CFGFILE}
then
echo "${0##*/}: ${PROJECT_NAME}.conf.sample is not up to date."
echo "${0##*/}: Please run ${0%%${0##*/}}generate_sample.sh."
exit 1
fi