summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-keystone_git.bb
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2017-08-08 10:47:21 +0200
committerAdrian Dudau <adrian.dudau@enea.com>2017-08-08 10:49:21 +0200
commitada7b80b4f01cbcdd29cd00ed9e5b255de292d35 (patch)
tree486f64093d42006efc41f39b1cdc5ee8c2c6a7bb /meta-openstack/recipes-devtools/python/python-keystone_git.bb
parent3c545840fdb73f77edce4ca0cb5313297fb8129c (diff)
downloadmeta-cloud-services-ada7b80b4f01cbcdd29cd00ed9e5b255de292d35.tar.gz
python-keystone: Fix sed failure due to missing init.d
init.d folder is created only if sysV is enabled in the image, but its contents are accessed regardless. Move the seds under the same if clause. Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystone_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone_git.bb16
1 files changed, 8 insertions, 8 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb
index 15ecb84..91707ad 100644
--- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb
@@ -104,7 +104,14 @@ do_install_append() {
104 then 104 then
105 install -d ${D}${sysconfdir}/init.d 105 install -d ${D}${sysconfdir}/init.d
106 install -m 0755 ${WORKDIR}/keystone ${D}${sysconfdir}/init.d/keystone 106 install -m 0755 ${WORKDIR}/keystone ${D}${sysconfdir}/init.d/keystone
107 fi 107
108 sed -e "s/%ADMIN_PASSWORD%/${ADMIN_PASSWORD}/g" \
109 -i ${D}${sysconfdir}/init.d/keystone
110 sed -e "s/%SERVICE_PASSWORD%/${SERVICE_PASSWORD}/g" \
111 -i ${D}${sysconfdir}/init.d/keystone
112 sed -e "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" \
113 -i ${D}${sysconfdir}/init.d/keystone
114 fi
108 115
109 sed "/# admin_endpoint = .*/a \ 116 sed "/# admin_endpoint = .*/a \
110 public_endpoint = http://%CONTROLLER_IP%:8081/keystone/main/ " \ 117 public_endpoint = http://%CONTROLLER_IP%:8081/keystone/main/ " \
@@ -128,13 +135,6 @@ do_install_append() {
128 sed -e "s:%TOKEN_FORMAT%:${TOKEN_FORMAT}:g" \ 135 sed -e "s:%TOKEN_FORMAT%:${TOKEN_FORMAT}:g" \
129 -i ${KEYSTONE_CONF_DIR}/keystone.conf 136 -i ${KEYSTONE_CONF_DIR}/keystone.conf
130 137
131 sed -e "s/%ADMIN_PASSWORD%/${ADMIN_PASSWORD}/g" \
132 -i ${D}${sysconfdir}/init.d/keystone
133 sed -e "s/%SERVICE_PASSWORD%/${SERVICE_PASSWORD}/g" \
134 -i ${D}${sysconfdir}/init.d/keystone
135 sed -e "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" \
136 -i ${D}${sysconfdir}/init.d/keystone
137
138 install -d ${KEYSTONE_PACKAGE_DIR}/tests/tmp 138 install -d ${KEYSTONE_PACKAGE_DIR}/tests/tmp
139 139
140 if [ -e "${KEYSTONE_PACKAGE_DIR}/tests/test_overrides.conf" ];then 140 if [ -e "${KEYSTONE_PACKAGE_DIR}/tests/test_overrides.conf" ];then