postgresql: fix behaviour inconsistency in stx
[pti/rtp.git] / meta-stx / recipes-extended / postgresql / postgresql_%.bbappend
index 41d1c03..284b22a 100644 (file)
 
 COMPUTE_IP="127.0.0.1"
 CONTROLLER_IP="127.0.0.1"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/postgresql:"
+
+SRC_URI += " \
+    file://postgresql.service.update \
+    "
+
+do_install_append() {
+       install -d ${D}${systemd_unitdir}/system
+       install -m 0755 ${WORKDIR}/postgresql.service.update ${D}${systemd_unitdir}/system/postgresql.service
+}
+
+FILES_${PN} += "${systemd_unitdir}/system/postgresql.service"