diff options
Diffstat (limited to 'meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend')
| -rw-r--r-- | meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend b/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend index be7f036..1102ba5 100644 --- a/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend +++ b/meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend | |||
| @@ -32,16 +32,20 @@ GROUPADD_PARAM_${PN} = "--system postgres" | |||
| 32 | USERADD_PARAM_${PN} = "--system --home /var/lib/postgres -g postgres \ | 32 | USERADD_PARAM_${PN} = "--system --home /var/lib/postgres -g postgres \ |
| 33 | --no-create-home --shell /bin/false postgres" | 33 | --no-create-home --shell /bin/false postgres" |
| 34 | 34 | ||
| 35 | pkg_postinst_${PN} () { | 35 | PACKAGES += " ${PN}-setup" |
| 36 | ALLOW_EMPTY_${PN}-setup = "1" | ||
| 37 | RDEPENDS_${PN} += " ${PN}-setup" | ||
| 38 | |||
| 39 | pkg_postinst_${PN}-setup () { | ||
| 36 | # postgres 9.2.4 postinst | 40 | # postgres 9.2.4 postinst |
| 37 | if [ "x$D" != "x" ]; then | 41 | if [ "x$D" != "x" ]; then |
| 38 | exit 1 | 42 | exit 1 |
| 39 | fi | 43 | fi |
| 40 | 44 | ||
| 41 | /etc/init.d/postgresql-init | 45 | /etc/init.d/postgresql-init |
| 42 | if [ $? -eq 0 ]; then | 46 | if [ $? -eq 0 ]; then |
| 43 | echo "[ERROR] postgres: unable to create admin account" | 47 | echo "[ERROR] postgres: unable to create admin account" |
| 44 | exit 1 | 48 | exit 1 |
| 45 | fi | 49 | fi |
| 46 | } | 50 | } |
| 47 | 51 | ||
