Skip to content

Instantly share code, notes, and snippets.

@memtkmcc
Created August 12, 2016 16:13
Show Gist options
  • Save memtkmcc/a878835686c1cef88db852e477ea1460 to your computer and use it in GitHub Desktop.
Save memtkmcc/a878835686c1cef88db852e477ea1460 to your computer and use it in GitHub Desktop.
---start---
find /data/disk/o1/static/grav-site-domain-com -type d -exec chmod 0755 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com -type f -exec chmod 0644 {} \; &> /dev/null
chown -R o1.ftp:users /data/disk/o1/static/grav-site-domain-com
find /data/disk/o1/static/grav-site-domain-com/bin -type d -exec chmod 02755 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com/bin -type f -exec chmod 0755 {} \; &> /dev/null
chown -R o1.70.web:www-data /data/disk/o1/static/grav-site-domain-com/cache
find /data/disk/o1/static/grav-site-domain-com/cache -type d -exec chmod 02775 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com/cache -type f -exec chmod 0664 {} \; &> /dev/null
chown -R o1.70.web:www-data /data/disk/o1/static/grav-site-domain-com/logs
find /data/disk/o1/static/grav-site-domain-com/logs -type d -exec chmod 02775 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com/logs -type f -exec chmod 0664 {} \; &> /dev/null
chown -R o1.70.web:www-data /data/disk/o1/static/grav-site-domain-com/images
find /data/disk/o1/static/grav-site-domain-com/images -type d -exec chmod 02775 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com/images -type f -exec chmod 0664 {} \; &> /dev/null
chown -R o1.70.web:www-data /data/disk/o1/static/grav-site-domain-com/assets
find /data/disk/o1/static/grav-site-domain-com/assets -type d -exec chmod 02775 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com/assets -type f -exec chmod 0664 {} \; &> /dev/null
chown -R o1.70.web:www-data /data/disk/o1/static/grav-site-domain-com/user/data
find /data/disk/o1/static/grav-site-domain-com/user/data -type d -exec chmod 02775 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com/user/data -type f -exec chmod 0664 {} \; &> /dev/null
chown -R o1.70.web:www-data /data/disk/o1/static/grav-site-domain-com/backup
find /data/disk/o1/static/grav-site-domain-com/backup -type d -exec chmod 02775 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com/backup -type f -exec chmod 0664 {} \; &> /dev/null
chown -R o1.70.web:www-data /data/disk/o1/static/grav-site-domain-com/user/config
find /data/disk/o1/static/grav-site-domain-com/user/config -type d -exec chmod 02775 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com/user/config -type f -exec chmod 0664 {} \; &> /dev/null
chown -R o1.70.web:www-data /data/disk/o1/static/grav-site-domain-com/user/pages
find /data/disk/o1/static/grav-site-domain-com/user/pages -type d -exec chmod 02775 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com/user/pages -type f -exec chmod 0664 {} \; &> /dev/null
chown -R o1.70.web:www-data /data/disk/o1/static/grav-site-domain-com/user/accounts
find /data/disk/o1/static/grav-site-domain-com/user/accounts -type d -exec chmod 02775 {} \; &> /dev/null
find /data/disk/o1/static/grav-site-domain-com/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