Skip to content
Snippets Groups Projects
Commit eefe055d authored by Andrei Gherzan's avatar Andrei Gherzan :penguin: Committed by Bernhard Rosenkränzer
Browse files

homeassistant-useradd.inc: Provide an inc file for the HA useradd configuration


This inc file is useful so multiple recipes can synchronise on the same
user configuration. For example, a recipe bringing a custom Home
Assistant configuration would use this to set the proper user ownership
of the configuration file.

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent d31d54dc
No related branches found
No related tags found
No related merge requests found
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
inherit useradd
HOMEASSISTANT_USER ?= "homeassistant"
HOMEASSISTANT_USER[doc] = "User the home-assistent service runs as."
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "--system homeassistant"
USERADD_PARAM_${PN} = "\
--system --no-create-home --shell /bin/false \
--home ${HOMEASSISTANT_CONFIG_DIR} \
--groups homeassistant,dialout --gid homeassistant \
${HOMEASSISTANT_USER}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment