From c5cf15d7cbfb239482c8a1dab9947b3c9c48ebab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= Date: Mon, 27 Jan 2020 22:05:42 +0100 Subject: [PATCH] Add octoprint user to dialout group for ttyUSB management --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index ad112af..12fe11c 100644 --- a/scripts/install +++ b/scripts/install @@ -40,6 +40,8 @@ ynh_exec_fully_quiet yunohost firewall allow TCP $port # create a dedicated system user ynh_script_progression --message="Creating dedicated user, rights and folders..." ynh_system_user_create $app +# add user to group dialout to allow ttyUSB usage +usermod -a -G dialout $app ## grant sudo permissions to the user to manage his own systemd service myynh_create_dir "/etc/sudoers.d" cp "../conf/sudoers" "/etc/sudoers.d/$app"