From 58a856a433b28d2b47250ffbb4ed45a41204aa68 Mon Sep 17 00:00:00 2001 From: unitexe Date: Sun, 11 Jan 2026 00:40:57 -0600 Subject: Install unitexe ssh authorized keys in separate recipe --- .../ssh-authorized-keys/ssh-authorized-keys.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-unit-core/recipes-users/ssh-authorized-keys/ssh-authorized-keys.bb (limited to 'meta-unit-core/recipes-users/ssh-authorized-keys/ssh-authorized-keys.bb') diff --git a/meta-unit-core/recipes-users/ssh-authorized-keys/ssh-authorized-keys.bb b/meta-unit-core/recipes-users/ssh-authorized-keys/ssh-authorized-keys.bb new file mode 100644 index 0000000..8989486 --- /dev/null +++ b/meta-unit-core/recipes-users/ssh-authorized-keys/ssh-authorized-keys.bb @@ -0,0 +1,15 @@ +SUMMARY = "Add authorized SSH keys for unitexe user" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${UNIT_CORE_LAYERDIR}/LICENSE;md5=38bf13be5d6979b28bd8adddb2f2f9b3" + +SRC_URI = "file://authorized_keys" + +S = "${UNPACKDIR}" + +USER_NAME = "unitexe" + +do_install() { + install -D -m 0600 ${UNPACKDIR}/authorized_keys ${D}/home/${USER_NAME}/.ssh/authorized_keys +} + +FILES:${PN} = "/home/${USER_NAME}/.ssh/authorized_keys" -- cgit v1.2.3