Hello there,
I was wondering if there is any WO command to update the WordPress Directory/File permissions whenever needed. Sometimes during the site migration or when I upload something using FTP/root user, I usually run the following commands:
sudo chown -R www-data /var/www/example.com/htdocs/*
sudo chgrp -R www-data /var/www/example.com/htdocs/*
cd /var/www/example.com/htdocs/
sudo find -type d -exec chmod 750 {} \;
sudo find -type f -exec chmod 640 {} \;
It would be really great if there is a single command that may perform the all above actions such as wo update example.com --wpperm