summaryrefslogtreecommitdiff
path: root/meta-unit-core/recipes-users/ssh-authorized-keys/ssh-authorized-keys.bb
diff options
context:
space:
mode:
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.bb15
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"