mirror of
https://github.com/YunoHost-Apps/jeedom_ynh.git
synced 2024-09-03 19:26:26 +02:00
commit
662cf5256b
6 changed files with 15 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue