Skip to content

Commit

Permalink
adding full path for visudo
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Mar 29, 2024
1 parent c0a646f commit ceaff6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stage4-node-red/00-install/01-run-chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# limitations under the License.
#

adduser --disabled-password --gecos 'Node-RED Service User' node-red || exit 0
id node-red || adduser --disabled-password --gecos 'Node-RED Service User' node-red

# FIXME: I don't think this is required?
usermod -aG sudo node-red
Expand Down
2 changes: 1 addition & 1 deletion stage5-common/00-install/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cat "${ROOTFS_DIR}/home/node-red/.node-red/aryaos-flows.json" > "${ROOTFS_DIR}/h
install -v -m 640 files/node-red.sudoers "${ROOTFS_DIR}/etc/sudoers.d/node-red"
SUDO_SERVICES="dump1090-fa dump978-fa gpsd comitup ${AOS_SERVICES}"
gen_aos_service_sudoers "${SUDO_SERVICES}" >> "${ROOTFS_DIR}/etc/sudoers.d/node-red"
visudo -c "${ROOTFS_DIR}/etc/sudoers.d/node-red"
/usr/sbin/visudo -c "${ROOTFS_DIR}/etc/sudoers.d/node-red"

# LINCOT tracker
install -v -m 755 files/get_position.sh "${ROOTFS_DIR}/usr/local/bin/"
Expand Down

0 comments on commit ceaff6c

Please sign in to comment.