summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-rally_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-rally_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-rally_git.bb28
1 files changed, 13 insertions, 15 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-rally_git.bb b/meta-openstack/recipes-devtools/python/python-rally_git.bb
index d29e7cb..31d4242 100644
--- a/meta-openstack/recipes-devtools/python/python-rally_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-rally_git.bb
@@ -63,22 +63,20 @@ do_install_append() {
63} 63}
64 64
65pkg_postinst_${SRCNAME}-setup () { 65pkg_postinst_${SRCNAME}-setup () {
66 if [ "x$D" != "x" ]; then 66 if [ -z "$D" ]; then
67 exit 1 67 # This is to make sure postgres is configured and running
68 if ! pidof postmaster > /dev/null; then
69 /etc/init.d/postgresql-init
70 /etc/init.d/postgresql start
71 fi
72
73 if [ ! -d /var/log/rally ]; then
74 mkdir /var/log/rally
75 fi
76
77 sudo -u postgres createdb rally
78 rally-manage db recreate
68 fi 79 fi
69
70 # This is to make sure postgres is configured and running
71 if ! pidof postmaster > /dev/null; then
72 /etc/init.d/postgresql-init
73 /etc/init.d/postgresql start
74 fi
75
76 if [ ! -d /var/log/rally ]; then
77 mkdir /var/log/rally
78 fi
79
80 sudo -u postgres createdb rally
81 rally-manage db recreate
82} 80}
83 81
84PACKAGES += "${SRCNAME}-tests ${SRCNAME}-api ${SRCNAME} ${SRCNAME}-setup" 82PACKAGES += "${SRCNAME}-tests ${SRCNAME}-api ${SRCNAME} ${SRCNAME}-setup"