Maintenance changes permissions of www directory

Ngnix runs as www-data user.
I host a few files web-files and those files are in /home/user-data/www/… so I changed the permissions of those files to www-data.

However, when I run “curl -s https://mailinabox.email/setup.sh | sudo bash” for maintenance, a portion of that script goes through and resets the permissions to user-data, causing the ngnix server to fail to serve files.

Suggest that the install scripts not change the permissions of the www directory under /home/user-data