mirror of
https://github.com/YunoHost-Apps/octoprint_ynh.git
synced 2024-09-03 19:46:26 +02:00
Add octoprint user to dialout group for ttyUSB management
This commit is contained in:
parent
95fc88f969
commit
c5cf15d7cb
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue