diff --git a/scripts/install b/scripts/install index cc95d1b..fa08cab 100755 --- a/scripts/install +++ b/scripts/install @@ -71,8 +71,8 @@ ynh_add_nginx_config #================================================= # Set permissions to app files -chmod 750 "$final_path" -chown -R root: "$final_path" +chmod 750 $final_path +chown -R www-data: $final_path #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 6b4bb9b..f3eb1d7 100755 --- a/scripts/restore +++ b/scripts/restore @@ -56,8 +56,8 @@ ynh_restore_file --origin_path="$final_path" #================================================= # Restore permissions on app files -chmod 750 "$final_path" -chown -R root: "$final_path" +chmod 750 $final_path +chown -R www-data: $final_path #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index eb0a592..25b006b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -86,8 +86,8 @@ ynh_add_nginx_config #================================================= # Set right permissions for curl installation -chmod 750 "$final_path" -chown -R root: "$final_path" +chmod 750 $final_path +chown -R www-data: $final_path #================================================= # RELOAD NGINX