From 26df53f530157f91344f0618c5987944ee0529b7 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 22 Jul 2022 13:44:46 +0200 Subject: [PATCH 1/3] usermod to $app --- scripts/install | 8 ++++---- scripts/restore | 8 ++++---- scripts/upgrade | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/install b/scripts/install index 3d957de..00f4d9a 100644 --- a/scripts/install +++ b/scripts/install @@ -123,18 +123,18 @@ chown $app:www-data -R /tmp/jeedom # For nginx user to be able to communicate with home automation devices if [ $(getent group dialout) ]; then - usermod -a -G dialout www-data + usermod -a -G dialout $app fi if [ $(getent group gpio) ]; then - usermod -a -G gpio www-data + usermod -a -G gpio $app fi if [ $(getent group tty) ]; then - usermod -a -G tty www-data + usermod -a -G tty $app fi # Sudo permissions to the user if agreed to if [ ${sudo} ]; then - usermod -a -G "sudo" www-data + usermod -a -G "sudo" $app if [ $(grep "www-data ALL=(ALL) NOPASSWD: ALL" /etc/sudoers | wc -l) -eq 0 ];then bash -c 'echo "www-data ALL=(ALL) NOPASSWD: ALL" | (EDITOR="tee -a" visudo)' fi diff --git a/scripts/restore b/scripts/restore index 039acdc..fdf45e7 100644 --- a/scripts/restore +++ b/scripts/restore @@ -101,18 +101,18 @@ chown $app:www-data -R /tmp/jeedom # For nginx user to be able to communicate with home automation devices if [ $(getent group dialout) ]; then - usermod -a -G dialout www-data + usermod -a -G dialout $app fi if [ $(getent group gpio) ]; then - usermod -a -G gpio www-data + usermod -a -G gpio $app fi if [ $(getent group tty) ]; then - usermod -a -G tty www-data + usermod -a -G tty $app fi # Sudo permissions to the user if agreed to if [ ${sudo} ]; then - usermod -a -G "sudo" www-data + usermod -a -G "sudo" $app if [ $(grep "www-data ALL=(ALL) NOPASSWD: ALL" /etc/sudoers | wc -l) -eq 0 ];then bash -c 'echo "www-data ALL=(ALL) NOPASSWD: ALL" | (EDITOR="tee -a" visudo)' fi diff --git a/scripts/upgrade b/scripts/upgrade index ba8162a..93ec1e0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -128,18 +128,18 @@ chown $app:www-data -R /tmp/jeedom # For nginx user to be able to communicate with home automation devices if [ $(getent group dialout) ]; then - usermod -a -G dialout www-data + usermod -a -G dialout $app fi if [ $(getent group gpio) ]; then - usermod -a -G gpio www-data + usermod -a -G gpio $app fi if [ $(getent group tty) ]; then - usermod -a -G tty www-data + usermod -a -G tty $app fi # Sudo permissions to the user if agreed to if [ ${sudo} ]; then - usermod -a -G "sudo" www-data + usermod -a -G "sudo" $app if [ $(grep "www-data ALL=(ALL) NOPASSWD: ALL" /etc/sudoers | wc -l) -eq 0 ];then bash -c 'echo "www-data ALL=(ALL) NOPASSWD: ALL" | (EDITOR="tee -a" visudo)' fi From 828e74b7f8ff47fa471e8b01caf5bc3ba50b1056 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 23 Jul 2022 03:02:56 +0200 Subject: [PATCH 2/3] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 2e6dfbe..737add3 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Home automation application", "fr": "Application de domotique" }, - "version": "4.1.19~ynh2", + "version": "4.1.19~ynh3", "url": "https://www.jeedom.com", "upstream": { "license": "GPL-2.0-or-later", From 2109df0b04033cad259dc60e6436e1d7b2c859f1 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sat, 23 Jul 2022 01:03:00 +0000 Subject: [PATCH 3/3] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3125a3b..5de8c87 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Jeedom is an home automation software. -**Shipped version:** 4.1.19~ynh2 +**Shipped version:** 4.1.19~ynh3 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 47901f0..a95e838 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Jeedom is an home automation software. -**Version incluse :** 4.1.19~ynh2 +**Version incluse :** 4.1.19~ynh3 ## Captures d'écran