diff options
| author | unitexe <unitexe70@gmail.com> | 2026-01-11 00:40:57 -0600 |
|---|---|---|
| committer | unitexe <unitexe70@gmail.com> | 2026-01-11 00:40:57 -0600 |
| commit | 58a856a433b28d2b47250ffbb4ed45a41204aa68 (patch) | |
| tree | de7e93c1c99bbf0c6e341ef3d56099faea82b9ea /meta-unit-core/recipes-users/ssh-authorized-keys/ssh-authorized-keys.bb | |
| parent | a33937d31fbede0e9f7dd7055dcb6ae95d305d59 (diff) | |
Install unitexe ssh authorized keys in separate recipe
Diffstat (limited to 'meta-unit-core/recipes-users/ssh-authorized-keys/ssh-authorized-keys.bb')
| -rw-r--r-- | meta-unit-core/recipes-users/ssh-authorized-keys/ssh-authorized-keys.bb | 15 |
1 files changed, 15 insertions, 0 deletions
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" |
