Skip to content

Commit

Permalink
corosync-qdevice: fix user creation and permissions
Browse files Browse the repository at this point in the history
The useradd class is not inherited in the corosync-qdevice recipe.
The qnetd directory has to be owned by the coroqnetd user.

Signed-off-by: Mathieu Dupré <[email protected]>
  • Loading branch information
dupremathieu committed Aug 29, 2024
1 parent 4467447 commit 4593e65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes-extended/corosync-qdevice/corosync-qdevice_3.0.3.bb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CVE_PRODUCT = "corosync-qdevice corosync:corosync-qdevice"

SECTION = "base"

inherit autotools pkgconfig systemd
inherit autotools pkgconfig systemd useradd

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=269da6ee9fc3cec5265effe22b48e187"
Expand Down Expand Up @@ -53,6 +53,7 @@ USERADD_PARAM:corosync-qnetd = " \

do_install:append() {
rm -rf ${D}${localstatedir}/run
chown coroqnetd:coroqnetd ${D}/${sysconfdir}/corosync/qnetd
}

FILES:corosync-qnetd = "\
Expand Down

0 comments on commit 4593e65

Please sign in to comment.