summaryrefslogtreecommitdiffstats
path: root/meta-openstack
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-09-15 21:50:54 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-10-03 01:15:42 -0400
commit2defbdf3d84d044f841ebb5e6695fdaee40b922d (patch)
tree2610fa52fef405ef095faaa86f3db903587e248d /meta-openstack
parentd7b1ddd9c176a9920d94ad2eab66f66badff780e (diff)
downloadmeta-cloud-services-2defbdf3d84d044f841ebb5e6695fdaee40b922d.tar.gz
nova-common: adapt to non /home/root directory structures
/home/root was hardcoded as the location for root's .bashrc. With this change we'll update .bashrc in /home/root or /root. We also add the $D prefix to the paths, to ensure there is no chance of clobbering the build machines /root/.bashrc. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack')
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova_2013.1.3.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-nova_2013.1.3.bb
index bd54d4e..e7f844a 100644
--- a/meta-openstack/recipes-devtools/python/python-nova_2013.1.3.bb
+++ b/meta-openstack/recipes-devtools/python/python-nova_2013.1.3.bb
@@ -7,7 +7,11 @@ pkg_postinst_${SRCNAME}-common () {
7 exit 1 7 exit 1
8 fi 8 fi
9 9
10 echo "source /etc/nova/openrc" > /home/root/.bashrc 10 if [ -d $D/home/root/ ]; then
11 echo "source /etc/nova/openrc" >> $D/home/root/.bashrc
12 elif [ -d $D/root/ ]; then
13 echo "source /etc/nova/openrc" >> $D/root/.bashrc
14 fi
11} 15}
12 16
13PACKAGES += "${SRCNAME}-common ${SRCNAME}-common-misc" 17PACKAGES += "${SRCNAME}-common ${SRCNAME}-common-misc"