I am upgrading Magento 2, and all Readiness checks are passed after giving 777 permission to pub/meda, generated folder. But during upgrade process it stops throwing error of non-writeable folder for the same folders that I provided them permissions before upgrade starts. Infact, readiness check is not passed without these permissions. Then again I provide permissions and after some time it requires again permissions.
Can we give the permissions once until the upgrade process gets complete..
I am upgrading on local server. Using Docker Image for community edition and upgrading for enterprise edition.
Here is the command that I use for writeable conditions exactly:
chmod -R 777 /var/www/html/generated/