summaryrefslogtreecommitdiffstats
path: root/meta-openstack/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/classes')
-rw-r--r--meta-openstack/classes/identity.bbclass11
1 files changed, 8 insertions, 3 deletions
diff --git a/meta-openstack/classes/identity.bbclass b/meta-openstack/classes/identity.bbclass
index c4b1394..1f4f408 100644
--- a/meta-openstack/classes/identity.bbclass
+++ b/meta-openstack/classes/identity.bbclass
@@ -163,9 +163,11 @@ python populate_packages_append () {
163 163
164 postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True) 164 postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True)
165 if not postinst: 165 if not postinst:
166 postinst = ' if [ "x$D" != "x" ]; then\n' + \ 166 postinst = ''
167 ' exit 1\n' + \ 167
168 ' fi\n' 168 # Only execute on target. Header.
169 postinst += ' if [ -z "$D" ]; then\n'
170
169 postinst += servicecreate_postinst_common_copy 171 postinst += servicecreate_postinst_common_copy
170 172
171 if d.getVar('USERCREATE_PARAM_%s' % pkg, True): 173 if d.getVar('USERCREATE_PARAM_%s' % pkg, True):
@@ -176,6 +178,9 @@ python populate_packages_append () {
176 servicecreate_postinst_service = servicecreate_postinst_service_copy.replace("SERVICECREATE_PARAM", servicecreate_param(d, pkg)) 178 servicecreate_postinst_service = servicecreate_postinst_service_copy.replace("SERVICECREATE_PARAM", servicecreate_param(d, pkg))
177 postinst += servicecreate_postinst_service 179 postinst += servicecreate_postinst_service
178 180
181 # Footer.
182 postinst += ' fi\n'
183
179 d.setVar('pkg_postinst_%s' % pkg, postinst) 184 d.setVar('pkg_postinst_%s' % pkg, postinst)
180 bb.debug(1, 'pkg_postinst_%s = %s' % (pkg, d.getVar('pkg_postinst_%s' % pkg, True))) 185 bb.debug(1, 'pkg_postinst_%s = %s' % (pkg, d.getVar('pkg_postinst_%s' % pkg, True)))
181} 186}