postgresql: update for stx 5.0

update the PGDATA with correct STX_REL for stx 5.0

Story: 2008952
Task: 42576

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Id5cceed6551e9af4c7cb17753b55c01b5357ad15
This commit is contained in:
Jackie Huang 2021-05-26 14:56:21 +08:00
parent 191cb91a30
commit 0242b01e0b
2 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@ Group=postgres
Environment=PGPORT=5432 Environment=PGPORT=5432
# Location of database directory # Location of database directory
Environment=PGDATA=/var/lib/postgresql/19.12 Environment=PGDATA=/var/lib/postgresql/@STX_REL@
# Disable OOM kill on the postmaster # Disable OOM kill on the postmaster
OOMScoreAdjust=-17 OOMScoreAdjust=-17

View File

@ -10,8 +10,9 @@ SRC_URI += " \
" "
do_install_append() { do_install_append() {
install -d ${D}${systemd_unitdir}/system install -d ${D}${systemd_unitdir}/system
install -m 0755 ${WORKDIR}/postgresql.service.update ${D}${systemd_unitdir}/system/postgresql.service install -m 0755 ${WORKDIR}/postgresql.service.update ${D}${systemd_unitdir}/system/postgresql.service
sed -i -e "s/@STX_REL@/${STX_REL}/" ${D}${systemd_unitdir}/system/postgresql.service
} }
FILES_${PN} += "${systemd_unitdir}/system/postgresql.service" FILES_${PN} += "${systemd_unitdir}/system/postgresql.service"