1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/homeassistant_ynh.git synced 2024-09-03 19:26:16 +02:00
This commit is contained in:
ewilly 2022-01-04 12:17:32 +01:00
parent af1c5cfa5a
commit 5cf53b9c97

View file

@ -16,9 +16,9 @@ PY_REQUIRED_VERSION=3.9.2
# Create homeassistant user
mynh_user_create () {
USER_GROUPS=""
[ ynh_system_group_exists --group=dialout ] && USER_GROUPS="${USER_GROUPS} dialout"
[ ynh_system_group_exists --group=gpio ] && USER_GROUPS="${USER_GROUPS} gpio"
[ ynh_system_group_exists --group=i2c ] && USER_GROUPS="${USER_GROUPS} i2c"
[ $(ynh_system_group_exists --group=dialout) ] && USER_GROUPS="${USER_GROUPS} dialout"
[ $(ynh_system_group_exists --group=gpio) ] && USER_GROUPS="${USER_GROUPS} gpio"
[ $(ynh_system_group_exists --group=i2c) ] && USER_GROUPS="${USER_GROUPS} i2c"
ynh_system_user_create --username="$app" --groups="$USER_GROUPS"
}