1
0
Fork 0
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:
Alexis Lothoré 2020-01-27 22:05:42 +01:00
parent 95fc88f969
commit c5cf15d7cb

View file

@ -40,6 +40,8 @@ ynh_exec_fully_quiet yunohost firewall allow TCP $port
# create a dedicated system user # create a dedicated system user
ynh_script_progression --message="Creating dedicated user, rights and folders..." ynh_script_progression --message="Creating dedicated user, rights and folders..."
ynh_system_user_create $app 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 ## grant sudo permissions to the user to manage his own systemd service
myynh_create_dir "/etc/sudoers.d" myynh_create_dir "/etc/sudoers.d"
cp "../conf/sudoers" "/etc/sudoers.d/$app" cp "../conf/sudoers" "/etc/sudoers.d/$app"