mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Fix user group access rights
This commit is contained in:
parent
7f12ccb1d0
commit
1aebae182c
3 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ PKG_DEPENDENCIES="python3 python3-dev python3-venv python3-pip libffi-dev libssl
|
|||
PY_REQUIRED_VERSION=3.9.2
|
||||
|
||||
# System groups allowed to homeassistant user
|
||||
GROUPS="dialout,gpio,i2c"
|
||||
USER_GROUPS="dialout gpio i2c"
|
||||
|
||||
# Check if directory/file already exists (path in argument)
|
||||
myynh_check_path () {
|
||||
|
|
|
@ -41,7 +41,7 @@ ynh_app_setting_set --app="$app" --key=path_url --value="$path_url"
|
|||
|
||||
# create a dedicated system user
|
||||
ynh_script_progression --message="Creating dedicated user, rights and folders..."
|
||||
ynh_system_user_create --username="$app" --groups="$GROUPS"
|
||||
ynh_system_user_create --username="$app" --groups="$USER_GROUPS"
|
||||
|
||||
# create a directory for the installation of Home Assistant
|
||||
myynh_create_dir "$final_path"
|
||||
|
|
|
@ -34,7 +34,7 @@ ynh_exec_warn_less yunohost firewall allow TCP $port
|
|||
|
||||
# restore dedicated system user
|
||||
ynh_script_progression --message="Restoring dedicated user and rights folders..."
|
||||
ynh_system_user_create --username="$app" --groups="$GROUPS"
|
||||
ynh_system_user_create --username="$app" --groups="$USER_GROUPS"
|
||||
ynh_restore_file --origin_path="/etc/sudoers.d/$app"
|
||||
|
||||
# restore source
|
||||
|
|
Loading…
Add table
Reference in a new issue