summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder_git.bb48
1 files changed, 23 insertions, 25 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb
index e70a3aa..9f70beb 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb
@@ -124,31 +124,29 @@ do_install_append() {
124} 124}
125 125
126pkg_postinst_${SRCNAME}-setup () { 126pkg_postinst_${SRCNAME}-setup () {
127 if [ "x$D" != "x" ]; then 127 if [ -z "$D" ]; then
128 exit 1 128 # This is to make sure postgres is configured and running
129 fi 129 if ! pidof postmaster > /dev/null; then
130 130 /etc/init.d/postgresql-init
131 # This is to make sure postgres is configured and running 131 /etc/init.d/postgresql start
132 if ! pidof postmaster > /dev/null; then 132 fi
133 /etc/init.d/postgresql-init 133
134 /etc/init.d/postgresql start 134 if [ ! -d /var/log/cinder ]; then
135 fi 135 mkdir /var/log/cinder
136 136 fi
137 if [ ! -d /var/log/cinder ]; then 137
138 mkdir /var/log/cinder 138 sudo -u postgres createdb cinder
139 fi 139 cinder-manage db sync
140 140
141 sudo -u postgres createdb cinder 141 # Create Cinder nfs_share config file with default nfs server
142 cinder-manage db sync 142 if [ ! -f /etc/cinder/nfs_shares ]; then
143 143 /bin/bash /etc/cinder/drivers/nfs_setup.sh
144 # Create Cinder nfs_share config file with default nfs server 144 fi
145 if [ ! -f /etc/cinder/nfs_shares ]; then 145
146 /bin/bash /etc/cinder/drivers/nfs_setup.sh 146 # Create Cinder glusterfs_share config file with default glusterfs server
147 fi 147 if [ ! -f /etc/cinder/glusterfs_shares ] && [ -f /usr/sbin/glusterfsd ]; then
148 148 /bin/bash /etc/cinder/drivers/glusterfs_setup.sh
149 # Create Cinder glusterfs_share config file with default glusterfs server 149 fi
150 if [ ! -f /etc/cinder/glusterfs_shares ] && [ -f /usr/sbin/glusterfsd ]; then
151 /bin/bash /etc/cinder/drivers/glusterfs_setup.sh
152 fi 150 fi
153} 151}
154 152