You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
525 B
31 lines
525 B
#!/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 --root=/ >/dev/null |
|
rm -rf build heat.egg-info |
|
|
|
|