#!/bin/sh


echo "Fixing ownership and permission in WWW"
echo "--------------------------------------"
echo "\n\n";

echo "Setting ownership on /var/www..."
chown -R www-data:www-data /var/www

echo "Setting file permissions to 0664 on /var/www/*..."
find /var/www -type f -exec chmod 0664 {} \;

echo "Setting directory permissions to 0775 on /var/www/*..."
find /var/www -type d exec chmod 0775 {} \;

echo "Done\n\n";

