diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystone_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone_git.bb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb index 882848a..e018d8d 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb +++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb | |||
| @@ -50,7 +50,7 @@ do_install_append() { | |||
| 50 | fi | 50 | fi |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | pkg_postinst_${SRCNAME} () { | 53 | pkg_postinst_${SRCNAME}-setup () { |
| 54 | # python-keystone postinst start | 54 | # python-keystone postinst start |
| 55 | if [ "x$D" != "x" ]; then | 55 | if [ "x$D" != "x" ]; then |
| 56 | exit 1 | 56 | exit 1 |
| @@ -58,9 +58,9 @@ pkg_postinst_${SRCNAME} () { | |||
| 58 | 58 | ||
| 59 | # This is to make sure postgres is configured and running | 59 | # This is to make sure postgres is configured and running |
| 60 | if ! pidof postmaster > /dev/null; then | 60 | if ! pidof postmaster > /dev/null; then |
| 61 | /etc/init.d/postgresql-init | 61 | /etc/init.d/postgresql-init |
| 62 | /etc/init.d/postgresql start | 62 | /etc/init.d/postgresql start |
| 63 | sleep 5 | 63 | sleep 2 |
| 64 | fi | 64 | fi |
| 65 | 65 | ||
| 66 | sudo -u postgres createdb keystone | 66 | sudo -u postgres createdb keystone |
| @@ -74,12 +74,14 @@ pkg_postinst_${SRCNAME} () { | |||
| 74 | ADMIN_PASSWORD=${ADMIN_PASSWORD} \ | 74 | ADMIN_PASSWORD=${ADMIN_PASSWORD} \ |
| 75 | SERVICE_PASSWORD=${SERVICE_PASSWORD} \ | 75 | SERVICE_PASSWORD=${SERVICE_PASSWORD} \ |
| 76 | SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME} \ | 76 | SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME} \ |
| 77 | bash /etc/keystone/identity.sh | 77 | bash /etc/keystone/identity.sh |
| 78 | 78 | ||
| 79 | # end python-keystone postinst | 79 | # end python-keystone postinst |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | PACKAGES += " ${SRCNAME}" | 82 | PACKAGES += " ${SRCNAME} ${SRCNAME}-setup" |
| 83 | |||
| 84 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | ||
| 83 | 85 | ||
| 84 | FILES_${PN} = "${libdir}/*" | 86 | FILES_${PN} = "${libdir}/*" |
| 85 | 87 | ||
| @@ -107,7 +109,7 @@ RDEPENDS_${PN} += "python-pam \ | |||
| 107 | python-dogpile.cache \ | 109 | python-dogpile.cache \ |
| 108 | " | 110 | " |
| 109 | 111 | ||
| 110 | RDEPENDS_${SRCNAME} = "${PN} \ | 112 | RDEPENDS_${SRCNAME} = "${PN} ${SRCNAME}-setup \ |
| 111 | postgresql postgresql-client python-psycopg2" | 113 | postgresql postgresql-client python-psycopg2" |
| 112 | 114 | ||
| 113 | INITSCRIPT_PACKAGES = "${SRCNAME}" | 115 | INITSCRIPT_PACKAGES = "${SRCNAME}" |
