diff options
author | Chong.Lu@windriver.com <Chong.Lu@windriver.com> | 2014-09-16 17:36:35 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-09-26 05:41:53 +0200 |
commit | dfa0b4c86d69c14a4fc8f3bda225526ead3bcd51 (patch) | |
tree | e9ad91fc155bbe79ea57c76f152944e97c59295b /meta-oe/recipes-support/postgresql/postgresql.inc | |
parent | cf2ab9ecbfcdac90c331509e9b5e25e51aa73248 (diff) | |
download | meta-openembedded-dfa0b4c86d69c14a4fc8f3bda225526ead3bcd51.tar.gz |
postgresql: move initdb to postgresql-setup
We shouldn't use sysvinit init script to initialize database when use systemd
as the init manager, so split initdb function to postgresql-setup.
Before starting postgresql server, we can use "postgresql-setup initdb" to
initialize the database cluster.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/postgresql/postgresql.inc')
-rw-r--r-- | meta-oe/recipes-support/postgresql/postgresql.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/postgresql/postgresql.inc b/meta-oe/recipes-support/postgresql/postgresql.inc index a9b4a012c..774c8fd0c 100644 --- a/meta-oe/recipes-support/postgresql/postgresql.inc +++ b/meta-oe/recipes-support/postgresql/postgresql.inc | |||
@@ -29,6 +29,7 @@ SRC_URI = "http://ftp.postgresql.org/pub/source/v${PV}/${BP}.tar.bz2 \ | |||
29 | file://postgresql-bashprofile \ | 29 | file://postgresql-bashprofile \ |
30 | file://postgresql.pam \ | 30 | file://postgresql.pam \ |
31 | file://0001-Use-pkg-config-for-libxml2-detection.patch \ | 31 | file://0001-Use-pkg-config-for-libxml2-detection.patch \ |
32 | file://postgresql-setup \ | ||
32 | " | 33 | " |
33 | 34 | ||
34 | LEAD_SONAME = "libpq.so" | 35 | LEAD_SONAME = "libpq.so" |
@@ -171,6 +172,7 @@ do_install_append() { | |||
171 | install -d ${D}${sysconfdir}/init.d | 172 | install -d ${D}${sysconfdir}/init.d |
172 | install -m 0755 ${WORKDIR}/${BPN}.init ${D}${sysconfdir}/init.d/${BPN}-server | 173 | install -m 0755 ${WORKDIR}/${BPN}.init ${D}${sysconfdir}/init.d/${BPN}-server |
173 | sed -i -e "s/^PGVERSION=.*$/PGVERSION=${PV}/g" ${D}${sysconfdir}/init.d/${BPN}-server | 174 | sed -i -e "s/^PGVERSION=.*$/PGVERSION=${PV}/g" ${D}${sysconfdir}/init.d/${BPN}-server |
175 | install -m 0755 ${WORKDIR}/${BPN}-setup ${D}${bindir}/${BPN}-setup | ||
174 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/data | 176 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/data |
175 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/backups | 177 | install -d -m 700 ${D}${localstatedir}/lib/${BPN}/backups |
176 | install -m 644 ${WORKDIR}/${BPN}-bashprofile ${D}${localstatedir}/lib/${BPN}/.bash_profile | 178 | install -m 644 ${WORKDIR}/${BPN}-bashprofile ${D}${localstatedir}/lib/${BPN}/.bash_profile |