heat/install.sh
Jeff Peeler 29ffcfb0b7 Remove --root=/ in install script
Installing with --root=/ put the files outside of the egg directory,
which is not desired.

Change-Id: I40142d1a67c0ee12814e08e7b2846bee0ce4e32e
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2012-06-25 18:04:25 -04:00

32 lines
516 B
Bash
Executable File

#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
CONF_DIR=/etc/heat
LOG_DIR=/var/log/heat
mkdir -p $LOG_DIR
mkdir -p $CONF_DIR
pushd etc > /dev/null
for f in *
do
if [ -d $f ]; then
# ignore directories
continue
elif [ -f $CONF_DIR/$f ]; then
echo "not copying over $CONF_DIR/$f"
diff -u $CONF_DIR/$f $f
else
cp $f $CONF_DIR
fi
done
popd > /dev/null
./setup.py install >/dev/null
rm -rf build heat.egg-info