mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Fix mynh_user_create
This commit is contained in:
parent
5cf53b9c97
commit
bf7fbad807
1 changed files with 3 additions and 3 deletions
|
@ -16,9 +16,9 @@ PY_REQUIRED_VERSION=3.9.2
|
||||||
# Create homeassistant user
|
# Create homeassistant user
|
||||||
mynh_user_create () {
|
mynh_user_create () {
|
||||||
USER_GROUPS=""
|
USER_GROUPS=""
|
||||||
[ $(ynh_system_group_exists --group=dialout) ] && USER_GROUPS="${USER_GROUPS} dialout"
|
[ $(getent group dialout) ] && USER_GROUPS="${USER_GROUPS} dialout"
|
||||||
[ $(ynh_system_group_exists --group=gpio) ] && USER_GROUPS="${USER_GROUPS} gpio"
|
[ $(getent group gpio) ] && USER_GROUPS="${USER_GROUPS} gpio"
|
||||||
[ $(ynh_system_group_exists --group=i2c) ] && USER_GROUPS="${USER_GROUPS} i2c"
|
[ $(getent group i2c) ] && USER_GROUPS="${USER_GROUPS} i2c"
|
||||||
ynh_system_user_create --username="$app" --groups="$USER_GROUPS"
|
ynh_system_user_create --username="$app" --groups="$USER_GROUPS"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue