mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
Add system user to render group only if it exists
This commit is contained in:
parent
69a4af8b68
commit
ce8050b5b7
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ if [ -z "$config_path" ]; then
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If jellyfin doesn't belong to render group, add it
|
# If render group exists, and system user doesn't belong to it, add it
|
||||||
if [ ! $(id -Gn $app | grep -q '\brender\b') ]; then
|
if [ $(grep -q "^render:" /etc/group) ] && [ ! $(id -Gn $app | grep -q '\brender\b') ]; then
|
||||||
adduser $app render
|
adduser $app render
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue