From acdeb235f986e22ff04749315817014564546b32 Mon Sep 17 00:00:00 2001 From: siwinter <45730097+siwinter@users.noreply.github.com> Date: Sat, 31 Jul 2021 20:30:53 +0200 Subject: [PATCH 1/3] only members of group audio can play sound --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 2e7aff6..303f0eb 100755 --- a/scripts/install +++ b/scripts/install @@ -75,7 +75,7 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies ynh_script_progression --message="Configuring system user..." # Create a system user -ynh_system_user_create --username="$app" --home_dir="$final_path" --use_shell +ynh_system_user_create --username="$app" --home_dir="$final_path" --use_shell --groups="audio" #================================================= # INSTALL MOPIDY IN PYTHON ENVIRONMENT From 2295d825cd488c00f0434e537d9edff58864008a Mon Sep 17 00:00:00 2001 From: siwinter <45730097+siwinter@users.noreply.github.com> Date: Sat, 31 Jul 2021 20:51:13 +0200 Subject: [PATCH 2/3] only members of group audio can play sound --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 14d277d..1813a3e 100755 --- a/scripts/restore +++ b/scripts/restore @@ -65,7 +65,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_script_progression --message="Recreating the dedicated system user..." --weight=1 # Create the dedicated user (if not existing) -ynh_system_user_create --username="$app" --home_dir="$final_path" --use_shell +ynh_system_user_create --username="$app" --home_dir="$final_path" --use_shell --groups="audio" #================================================= # RESTORE THE APP MAIN DIR From bc421d01d57a273a59287cf7500e94a89de0abed Mon Sep 17 00:00:00 2001 From: siwinter <45730097+siwinter@users.noreply.github.com> Date: Sat, 31 Jul 2021 20:52:19 +0200 Subject: [PATCH 3/3] only members of group audio can play sound --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3070552..707772a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -103,7 +103,7 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies ynh_script_progression --message="Making sure dedicated system user exists..." --weight=1 # Create a dedicated user (if not existing) -ynh_system_user_create --username="$app" --home_dir="$final_path" --use_shell +ynh_system_user_create --username="$app" --home_dir="$final_path" --use_shell --groups="audio" #================================================= # SPECIFIC UPGRADE