fixperms 451 B

12345678910111213
  1. #!/bin/bash
  2. echo "Correcting filesystem permissions..."
  3. if [ -z "$1" ]; then
  4. bin/clinotty find var vendor pub/static pub/media app/etc -type f -exec chmod u+w {} \;
  5. bin/clinotty find var vendor pub/static pub/media app/etc -type d -exec chmod u+w {} \;
  6. bin/clinotty chmod u+x bin/magento
  7. else
  8. bin/clinotty find $1 -type f -exec chmod u+w {} \;
  9. bin/clinotty find $1 -type d -exec chmod u+w {} \;
  10. fi
  11. echo "Filesystem permissions corrected."