diff --git a/issue_template.md b/issue_template.md index 87b88d4..9e24a36 100644 --- a/issue_template.md +++ b/issue_template.md @@ -31,7 +31,7 @@ about: When creating a bug report, please use the following template to provide - *If you performed a command from the CLI, the command itself is enough. For example:* ```sh - sudo yunohost app install REPLACEBYYOURAPP + sudo yunohost app install domoticz_ynh ``` - *If you used the webadmin, please perform the equivalent command from the CLI first.* - *If the error occurs in your browser, explain what you did:* diff --git a/scripts/install b/scripts/install index aae380f..436d2ea 100755 --- a/scripts/install +++ b/scripts/install @@ -120,7 +120,10 @@ 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 gpio $app +usermod -a -G dialout $app +usermod -a -G i2c $app +usermod -a -G gpio $app + #allow app user to restart service on startup cp ../conf/sudoer ../conf/$app.conf diff --git a/scripts/restore b/scripts/restore index 3f94d66..29d87a5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -92,7 +92,9 @@ 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 gpio $app +usermod -a -G dialout $app +usermod -a -G i2c $app +usermod -a -G gpio $app #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index bc938ee..ae3112a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -175,7 +175,9 @@ 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 gpio $app +usermod -a -G dialout $app +usermod -a -G i2c $app +usermod -a -G gpio $app #allow app user to restart service on startup cp ../conf/sudoer ../conf/$app.conf