]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Add install.sh
authorAngus Salkeld <asalkeld@redhat.com>
Fri, 8 Jun 2012 02:54:03 +0000 (12:54 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Fri, 8 Jun 2012 02:54:03 +0000 (12:54 +1000)
fixes #134

Change-Id: I5d0aa01143050a305c44573220e96dba9f81e1ae
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
install.sh [new file with mode: 0755]

diff --git a/install.sh b/install.sh
new file mode 100755 (executable)
index 0000000..c9cbbe1
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+mkdir -p /var/log/heat
+mkdir -p /etc/heat
+
+pushd etc
+for f in *
+do
+    if [ -d $f ] ; then
+        #ignore
+        s=0
+    elif [ -f $f ] ; then
+        echo not coping over /etc/heat/$f
+        diff -u /etc/heat/$f $f
+    else
+        cp $f /etc/heat/
+    fi
+done
+popd
+
+./setup.py install --root=/ >/dev/null
+rm -rf build heat.egg-info
+