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:
parent
191cb91a30
commit
0242b01e0b
@ -11,7 +11,7 @@ Group=postgres
|
||||
Environment=PGPORT=5432
|
||||
|
||||
# Location of database directory
|
||||
Environment=PGDATA=/var/lib/postgresql/19.12
|
||||
Environment=PGDATA=/var/lib/postgresql/@STX_REL@
|
||||
|
||||
# Disable OOM kill on the postmaster
|
||||
OOMScoreAdjust=-17
|
||||
|
@ -10,8 +10,9 @@ SRC_URI += " \
|
||||
"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0755 ${WORKDIR}/postgresql.service.update ${D}${systemd_unitdir}/system/postgresql.service
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user