Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pricejn2/ec7e38a58335f27b41d8d41cdae68ca3 to your computer and use it in GitHub Desktop.
Save pricejn2/ec7e38a58335f27b41d8d41cdae68ca3 to your computer and use it in GitHub Desktop.
---start---
find /var/www/grav-onepage -type d -exec chmod 0755 {} \; &> /dev/null
find /var/www/grav-onepage -type f -exec chmod 0644 {} \; &> /dev/null
chown -R www72:www-data /var/www/grav-onepage
find /var/www/grav-onepage/bin -type d -exec chmod 02755 {} \; &> /dev/null
find /var/www/grav-onepage/bin -type f -exec chmod 0755 {} \; &> /dev/null
find /var/www/grav-onepage/tmp -type d -exec chmod 02775 {} \; &> /dev/null
find /var/www/grav-onepage/tmp -type f -exec chmod 0664 {} \; &> /dev/null
find /var/www/grav-onepage/cache -type d -exec chmod 02775 {} \; &> /dev/null
find /var/www/grav-onepage/cache -type f -exec chmod 0664 {} \; &> /dev/null
find /var/www/grav-onepage/logs -type d -exec chmod 02775 {} \; &> /dev/null
find /var/www/grav-onepage/logs -type f -exec chmod 0664 {} \; &> /dev/null
find /var/www/grav-onepage/images -type d -exec chmod 02775 {} \; &> /dev/null
find /var/www/grav-onepage/images -type f -exec chmod 0664 {} \; &> /dev/null
find /var/www/grav-onepage/assets -type d -exec chmod 02775 {} \; &> /dev/null
find /var/www/grav-onepage/assets -type f -exec chmod 0664 {} \; &> /dev/null
find /var/www/grav-onepage/user/data -type d -exec chmod 02775 {} \; &> /dev/null
find /var/www/grav-onepage/user/data -type f -exec chmod 0664 {} \; &> /dev/null
find /var/www/grav-onepage/backup -type d -exec chmod 02775 {} \; &> /dev/null
find /var/www/grav-onepage/backup -type f -exec chmod 0664 {} \; &> /dev/null
find /var/www/grav-onepage/user/config -type d -exec chmod 02775 {} \; &> /dev/null
find /var/www/grav-onepage/user/config -type f -exec chmod 0664 {} \; &> /dev/null
find /var/www/grav-onepage/user/pages -type d -exec chmod 02775 {} \; &> /dev/null
find /var/www/grav-onepage/user/pages -type f -exec chmod 0664 {} \; &> /dev/null
find /var/www/grav-onepage/user/accounts -type d -exec chmod 02775 {} \; &> /dev/null
find /var/www/grav-onepage/user/accounts -type f -exec chmod 0664 {} \; &> /dev/null
---fin---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment