summaryrefslogtreecommitdiff
path: root/meta-unit-core/recipes-users/ssh-authorized-keys/ssh-authorized-keys.bb
blob: 8989486cac2e225c78fd84ed758c475b37c03459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"