[go: nahoru, domu]

Skip to content

Commit

Permalink
Update aziot-edged.inc with post script installation steps (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggjjj committed Mar 9, 2023
1 parent 63785df commit be5bc22
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions recipes-core/aziot-edged/aziot-edged.inc
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,6 @@ do_install () {
install -m 644 ${WORKDIR}/iotedge.conf ${D}${sysconfdir}/tmpfiles.d/iotedge.conf
}

pkg_postinst_ontarget_${PN}() {
#!/bin/sh

# Add each admin user to the iotedge group
for u in $(getent group admin | sed -e "s/^.*://" -e "s/,/ /g"); do
usermod -aG iotedge "$u" >/dev/null || true
done

# Add each sudo user to the iotedge group
for u in $(getent group sudo | sed -e "s/^.*://" -e "s/,/ /g"); do
usermod -aG iotedge "$u" >/dev/null || true
done
}

inherit useradd
USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "-r -g iotedge -c 'iotedge user' -G docker,systemd-journal,aziotcs,aziotks,aziottpm,aziotid -s /sbin/nologin -d ${localstatedir}/lib/aziot/edged iotedge; "
Expand Down

0 comments on commit be5bc22

Please sign in to comment.