mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
Add jellyfin to render group
This commit is contained in:
parent
f5075d9c97
commit
6138885067
2 changed files with 11 additions and 0 deletions
|
@ -108,6 +108,8 @@ ynh_script_progression --message="Configuring system user..." --weight=2
|
|||
|
||||
# Create a system user
|
||||
ynh_system_user_create --username=$app
|
||||
# Add user to render group
|
||||
adduser $app render
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
|
|
|
@ -47,6 +47,12 @@ if [ -z "$config_path" ]; then
|
|||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
fi
|
||||
|
||||
# If jellyfin doesn't belong to render group, add it
|
||||
if [ ! $(grep "jellyfin:x:[0-9]*:render" /etc/group) ]
|
||||
then
|
||||
adduser $app render
|
||||
fi
|
||||
|
||||
# Cleaning legacy permissions
|
||||
if ynh_legacy_permissions_exists; then
|
||||
ynh_legacy_permissions_delete_all
|
||||
|
@ -58,7 +64,10 @@ if ! ynh_permission_exists --permission="admin"; then
|
|||
# Create the required permissions
|
||||
ynh_permission_create --permission="admin" --allowed=$admin
|
||||
fi
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
>>>>>>> Add jellyfin to render group
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue