1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/domoticz_ynh.git synced 2024-09-03 18:26:17 +02:00

Add gpio group

This commit is contained in:
Krakinou 2021-02-04 23:11:12 +01:00
parent c7ded41b40
commit ccc25a29bd
3 changed files with 3 additions and 3 deletions

View file

@ -120,7 +120,7 @@ ynh_script_progression --message="Configuring system user..." --weight=1
# Create a system user
ynh_system_user_create --username=$app
#allow user to access USB / serial port to communicate with tools (RFXtrx, Z-wave dongle, etc.) & i2c bus
usermod -a -G dialout i2c $app
usermod -a -G dialout i2c gpio $app
#allow app user to restart service on startup
cp ../conf/sudoer ../conf/$app.conf

View file

@ -92,7 +92,7 @@ ynh_restore_file --origin_path="/etc/sudoers.d/$app"
#Both folder and database file must be own by app user for domoticz to work and allow internal upgrade
chown -R $app: $final_path
#allow user to access USB / serial port to communicate with tools (RFXtrx, Z-wave dongle, etc.) & i2c bus
usermod -a -G dialout i2c $app
usermod -a -G dialout i2c gpio $app
#=================================================

View file

@ -175,7 +175,7 @@ ynh_script_progression --message="Making sure dedicated system user exists..."
# Create a dedicated user (if not existing)
ynh_system_user_create --username=$app
#allow user to access USB / serial port to communicate with tools (RFXtrx, Z-wave dongle, etc.) & i2c bus
usermod -a -G dialout i2c $app
usermod -a -G dialout i2c gpio $app
#allow app user to restart service on startup
cp ../conf/sudoer ../conf/$app.conf