From 2e27bcc8899e11daab6bb7925fce459e12a52384 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 15 Jun 2022 00:39:37 +0200 Subject: [PATCH] Fix rights --- scripts/install | 6 +++--- scripts/restore | 2 +- scripts/upgrade | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index a4ef069..140b608 100644 --- a/scripts/install +++ b/scripts/install @@ -119,7 +119,7 @@ ynh_script_progression --message="Configuring rights..." # Create tmp required by Jeedom mkdir -p /tmp/jeedom chmod 750 -R /tmp/jeedom -chown www-data:www-data -R /tmp/jeedom +chown $app:www-data -R /tmp/jeedom # For nginx user to be able to communicate with home automation devices if [ $(getent group dialout) ]; then @@ -176,11 +176,11 @@ ynh_script_progression --message="Securing files and directories..." # Set permissions to app files chmod 750 -R $final_path -chown -R www-data:www-data $final_path +chown -R $app:www-data $final_path # Create tmp required by Jeedom chmod 750 -R /tmp/jeedom -chown www-data:www-data -R /tmp/jeedom +chown $app:www-data -R /tmp/jeedom #================================================= # GENERIC FINALIZATION diff --git a/scripts/restore b/scripts/restore index 4cca4af..b8ecbda 100644 --- a/scripts/restore +++ b/scripts/restore @@ -97,7 +97,7 @@ ynh_script_progression --message="Configuring rights..." # Create tmp required by Jeedom mkdir -p /tmp/jeedom chmod 750 -R /tmp/jeedom -chown www-data:www-data -R /tmp/jeedom +chown $app:www-data -R /tmp/jeedom # For nginx user to be able to communicate with home automation devices if [ $(getent group dialout) ]; then diff --git a/scripts/upgrade b/scripts/upgrade index 5307c92..9d3d794 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -124,7 +124,7 @@ ynh_script_progression --message="Configuring rights..." # Create tmp required by Jeedom mkdir -p /tmp/jeedom chmod 750 -R /tmp/jeedom -chown www-data:www-data -R /tmp/jeedom +chown $app:www-data -R /tmp/jeedom # For nginx user to be able to communicate with home automation devices if [ $(getent group dialout) ]; then @@ -181,11 +181,11 @@ ynh_script_progression --message="Securing files and directories..." # Set permissions to app files chmod 750 -R $final_path -chown -R www-data:www-data $final_path +chown -R $app:www-data $final_path # Create tmp required by Jeedom chmod 750 -R /tmp/jeedom -chown www-data:www-data -R /tmp/jeedom +chown $app:www-data -R /tmp/jeedom #================================================= # GENERIC FINALIZATION