diff options
Diffstat (limited to 'meta-oe/recipes-dbs/postgresql/postgresql.inc')
| -rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index e29a5bef77..2dd7dd6fda 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc | |||
| @@ -198,24 +198,24 @@ do_install:append() { | |||
| 198 | 198 | ||
| 199 | # install dirs and server init | 199 | # install dirs and server init |
| 200 | install -d ${D}${sysconfdir}/init.d | 200 | install -d ${D}${sysconfdir}/init.d |
| 201 | install -m 0755 ${WORKDIR}/${BPN}.init ${D}${sysconfdir}/init.d/${BPN}-server | 201 | install -m 0755 ${UNPACKDIR}/${BPN}.init ${D}${sysconfdir}/init.d/${BPN}-server |
| 202 | sed -i -e "s/^PGVERSION=.*$/PGVERSION=${PV}/g" ${D}${sysconfdir}/init.d/${BPN}-server | 202 | sed -i -e "s/^PGVERSION=.*$/PGVERSION=${PV}/g" ${D}${sysconfdir}/init.d/${BPN}-server |
| 203 | install -m 0755 ${WORKDIR}/${BPN}-setup ${D}${bindir}/${BPN}-setup | 203 | install -m 0755 ${UNPACKDIR}/${BPN}-setup ${D}${bindir}/${BPN}-setup |
| 204 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/data | 204 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/data |
| 205 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/backups | 205 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/backups |
| 206 | install -m 644 ${WORKDIR}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile | 206 | install -m 644 ${UNPACKDIR}/${BPN}-profile ${D}${localstatedir}/lib/${BPN}/.profile |
| 207 | chown -R postgres:postgres ${D}${localstatedir}/lib/${BPN} | 207 | chown -R postgres:postgres ${D}${localstatedir}/lib/${BPN} |
| 208 | # multiple server config directory | 208 | # multiple server config directory |
| 209 | install -d -m 700 ${D}${sysconfdir}/default/${BPN} | 209 | install -d -m 700 ${D}${sysconfdir}/default/${BPN} |
| 210 | 210 | ||
| 211 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then | 211 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then |
| 212 | install -d ${D}${sysconfdir}/pam.d | 212 | install -d ${D}${sysconfdir}/pam.d |
| 213 | install -m 644 ${WORKDIR}/postgresql.pam ${D}${sysconfdir}/pam.d/postgresql | 213 | install -m 644 ${UNPACKDIR}/postgresql.pam ${D}${sysconfdir}/pam.d/postgresql |
| 214 | fi | 214 | fi |
| 215 | 215 | ||
| 216 | # Install systemd unit files | 216 | # Install systemd unit files |
| 217 | install -d ${D}${systemd_unitdir}/system | 217 | install -d ${D}${systemd_unitdir}/system |
| 218 | install -m 0644 ${WORKDIR}/postgresql.service ${D}${systemd_unitdir}/system | 218 | install -m 0644 ${UNPACKDIR}/postgresql.service ${D}${systemd_unitdir}/system |
| 219 | sed -i -e 's,@BINDIR@,${bindir},g' \ | 219 | sed -i -e 's,@BINDIR@,${bindir},g' \ |
| 220 | ${D}${systemd_unitdir}/system/postgresql.service | 220 | ${D}${systemd_unitdir}/system/postgresql.service |
| 221 | # Remove the build path | 221 | # Remove the build path |
