Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fhferreira/4ac09b1daca471e91215 to your computer and use it in GitHub Desktop.
Save fhferreira/4ac09b1daca471e91215 to your computer and use it in GitHub Desktop.

Magento SSH

Reset permissions

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod -R o+w media var
chmod o+w app/etc

Convert Unix/DOS|PC Format

find . -type f -exec dos2unix {} \;
find . -type f -exec unix2dos {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment